15 #define USB_TIMEOUT (XU1541_W4L_TIMEOUT * 1100)
17 #include "xu1541_types.h"
20 #define XU1541_VID 0x0403
21 #define XU1541_PID 0xc632
26 extern int xu1541_ioctl(
unsigned int cmd,
unsigned int addr,
unsigned int secaddr);
27 extern int xu1541_write(
const unsigned char *data,
size_t len);
28 extern int xu1541_read(
unsigned char *data,
size_t len);
int xu1541_special_read(int mode, unsigned char *data, size_t size)
"special" read data from the xu1541 device
void xu1541_close(void)
close the xu1541 device
int xu1541_ioctl(unsigned int cmd, unsigned int addr, unsigned int secaddr)
perform an ioctl on the xu1541
int xu1541_special_write(int mode, const unsigned char *data, size_t size)
"special" write data to the xu1541 device
int xu1541_init(void)
initialise the xu1541 device
int xu1541_read(unsigned char *data, size_t len)
read data from the xu1541 device
DLL interface for accessing the driver.
int xu1541_write(const unsigned char *data, size_t len)
write data to the xu1541 device