Go to the documentation of this file.
14 #ifndef exSID_ftdiwrap_h
15 #define exSID_ftdiwrap_h
18 typedef void * (* xSfw_new_p)(void);
54 typedef int (*
xSfw_usb_open_desc_p)(
void ** ftdi,
int vid,
int pid,
const char * desc,
const char * serial);
68 typedef char * (* xSfw_get_error_string_p)(
void * ftdi);
71 #define XSFW_EXTERN extern
76 #define XSFW_PROTODEF(a) XSFW_EXTERN a ## _p a
void xSfw_dlclose()
Definition: exSID_ftdiwrap.c:335
int xSfw_usb_setup(void *ftdi, int baudrate, int latency)
Definition: exSID_ftdiwrap.c:273
int(* xSfw_usb_open_desc_p)(void **ftdi, int vid, int pid, const char *desc, const char *serial)
Definition: exSID_ftdiwrap.h:54
int(* xSfw_usb_purge_buffers_p)(void *ftdi)
Definition: exSID_ftdiwrap.h:57
int(* xSfw_read_data_p)(void *ftdi, unsigned char *buf, int size)
Definition: exSID_ftdiwrap.h:41
int xSfw_dlopen()
Definition: exSID_ftdiwrap.c:184
void(* xSfw_free_p)(void *ftdi)
Definition: exSID_ftdiwrap.h:21
int(* xSfw_usb_close_p)(void *ftdi)
Definition: exSID_ftdiwrap.h:60
XSFW_PROTODEF(xSfw_new)
Handle allocation callback.
int(* xSfw_write_data_p)(void *ftdi, const unsigned char *buf, int size)
Definition: exSID_ftdiwrap.h:31