X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.h;h=43778ccea436b715c0856ed7aa2040a19325ddaf;hp=7d74701966af671802d272ce4c44acb98eb5736e;hb=c3d95b87548ccb1ebce6774e3b0a8771d9ea0b8d;hpb=792418f119810bc9ac88c270d42c2de1b41d6424 diff --git a/src/ftdi.h b/src/ftdi.h index 7d74701..43778cc 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -43,7 +43,7 @@ struct ftdi_context { // Endpoints int in_ep; int out_ep; // 1 or 2 - + /* 1: (default) Normal bitbang mode, 2: FT2232C SPI bitbang mode */ unsigned char bitbang_mode; @@ -114,6 +114,9 @@ extern "C" { int ftdi_write_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom); int ftdi_erase_eeprom(struct ftdi_context *ftdi); + + char *ftdi_get_error_string(struct ftdi_context *ftdi); + #ifdef __cplusplus } #endif