4 #ifdef LIBNEXYS_INTERNAL
10 typedef HANDLE nexys2_t;
16 typedef usb_dev_handle *nexys2_t;
20 typedef void *nexys2_t;
23 extern nexys2_t nexys2_init(void);
24 extern int nexys2_jtag_enable(nexys2_t dev);
25 extern int nexys2_jtag_disable(nexys2_t dev);
26 extern int nexys2_jtag_setbits(nexys2_t dev, int tms, int tdi, int tck);
27 extern int nexys2_jtag_puttdi(nexys2_t dev, int tms, int nbits, unsigned char *bits, unsigned char *obits);
28 extern int nexys2_jtag_puttmstdi(nexys2_t dev, int nbits, unsigned char *bits, unsigned char *obits);
29 extern int nexys2_jtag_gettdo(nexys2_t dev, int tdi, int tms, int nbits, unsigned char *obits);