initial commit of s3load
[s3load.git] / libnexys.h
CommitLineData
5ee943f9
JW
1#ifndef _LIBNEXYS_H
2#define _LIBNEXYS_H
3
4#ifdef LIBNEXYS_INTERNAL
5#ifdef WIN32_NATIVE
6# include <windows.h>
7# include "gendefs.h"
8# include "dpcdefs.h"
9# include "dpcutil.h"
10 typedef HANDLE nexys2_t;
11#else
12#ifdef PARPORT
13 typedef int nexys2_t;
14#else
15# include <usb.h>
16 typedef usb_dev_handle *nexys2_t;
17#endif
18#endif
19#else
20 typedef void *nexys2_t;
21#endif
22
23extern nexys2_t nexys2_init(void);
24extern int nexys2_jtag_enable(nexys2_t dev);
25extern int nexys2_jtag_disable(nexys2_t dev);
26extern int nexys2_jtag_setbits(nexys2_t dev, int tms, int tdi, int tck);
27extern int nexys2_jtag_puttdi(nexys2_t dev, int tms, int nbits, unsigned char *bits, unsigned char *obits);
28extern int nexys2_jtag_puttmstdi(nexys2_t dev, int nbits, unsigned char *bits, unsigned char *obits);
29extern int nexys2_jtag_gettdo(nexys2_t dev, int tdi, int tms, int nbits, unsigned char *obits);
30
31#endif
This page took 0.020038 seconds and 4 git commands to generate.