}
-int ftdi_write_data(struct ftdi_context *ftdi, char *buf, int size) {
+int ftdi_write_data(struct ftdi_context *ftdi, unsigned char *buf, int size) {
int ret;
int offset = 0;
while (offset < size) {
}
-int ftdi_read_data(struct ftdi_context *ftdi, char *buf, int size) {
+int ftdi_read_data(struct ftdi_context *ftdi, unsigned char *buf, int size) {
/*
unsigned char buf[64];
int read_bytes;
/*
ftdi_eeprom_build return codes:
- 0: all fine
+ positive value: used eeprom size
-1: eeprom size (128 bytes) exceeded by custom strings
*/
int ftdi_eeprom_build(struct ftdi_eeprom *eeprom, unsigned char *output) {
output[0x7E] = checksum;
output[0x7F] = checksum >> 8;
- return 0;
+ return size_check;
}
-int ftdi_read_eeprom(struct ftdi_context *ftdi, char *eeprom) {
+int ftdi_read_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom) {
int i;
for (i = 0; i < 64; i++) {
}
-int ftdi_write_eeprom(struct ftdi_context *ftdi, char *eeprom) {
+int ftdi_write_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom) {
unsigned short usb_val;
int i;