X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi%2Fftdi.h;h=9e8615a0decfe20df655c91f76df3adf88edad35;hp=b07c35771b828c969f7efba62eed7e3524346c73;hb=cd14efd85a8abe021116e68fac60a68214f7ef10;hpb=b8aa7b35f8b9374c1c4957bab331cb984c313561 diff --git a/ftdi/ftdi.h b/ftdi/ftdi.h index b07c357..9e8615a 100644 --- a/ftdi/ftdi.h +++ b/ftdi/ftdi.h @@ -17,7 +17,7 @@ #ifndef __libftdi_h__ #define __libftdi_h__ -struct usb_dev_handle; +#include struct ftdi_context { // USB specific @@ -65,8 +65,8 @@ extern "C" { int ftdi_usb_reset(struct ftdi_context *ftdi); int ftdi_set_baudrate(struct ftdi_context *ftdi, int baudrate); - int ftdi_write_data(struct ftdi_context *ftdi, char *buf, int size); - int ftdi_read_data(struct ftdi_context *ftdi, char *buf, int size); + int ftdi_write_data(struct ftdi_context *ftdi, unsigned char *buf, int size); + int ftdi_read_data(struct ftdi_context *ftdi, unsigned char *buf, int size); int ftdi_enable_bitbang(struct ftdi_context *ftdi, unsigned char bitmask); int ftdi_disable_bitbang(struct ftdi_context *ftdi); @@ -81,8 +81,8 @@ extern "C" { // "eeprom" needs to be valid 128 byte eeprom (generated by the eeprom generator) // the checksum of the eeprom is valided - int ftdi_read_eeprom(struct ftdi_context *ftdi, char *eeprom); - int ftdi_write_eeprom(struct ftdi_context *ftdi, char *eeprom); + int ftdi_read_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom); + int ftdi_write_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom); int ftdi_erase_eeprom(struct ftdi_context *ftdi); #ifdef __cplusplus