2 * Main include file for libnexys
3 * libnexys, a free driver for Digilent NEXYS2 boards
5 * Copyright (c) 2007-2008 Joshua Wise
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License.
11 * Commercial licenses are available by request.
16 #ifdef LIBNEXYS_INTERNAL
22 typedef HANDLE nexys2_t;
28 typedef usb_dev_handle *nexys2_t;
32 typedef void *nexys2_t;
35 extern nexys2_t nexys2_init(void);
36 extern int nexys2_jtag_enable(nexys2_t dev);
37 extern int nexys2_jtag_disable(nexys2_t dev);
38 extern int nexys2_jtag_setbits(nexys2_t dev, int tms, int tdi, int tck);
39 extern int nexys2_jtag_puttdi(nexys2_t dev, int tms, int nbits, unsigned char *bits, unsigned char *obits);
40 extern int nexys2_jtag_puttmstdi(nexys2_t dev, int nbits, unsigned char *bits, unsigned char *obits);
41 extern int nexys2_jtag_gettdo(nexys2_t dev, int tdi, int tms, int nbits, unsigned char *obits);