X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.h;h=6d3c98dd9bc347911041ce830353c95e800286d3;hp=fd0d3577f20750f7f55886e976d168775e922d5d;hb=cb6250fae3c448dbcf8a780d8ea621c88a5b66d2;hpb=d77b0e94a0a6c7cbd09ecb5bd768bcb525befa21 diff --git a/src/ftdi.h b/src/ftdi.h index fd0d357..6d3c98d 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -20,7 +20,7 @@ #include /// FTDI chip type -enum ftdi_chip_type { TYPE_AM=0, TYPE_BM=1, TYPE_2232C=2 }; +enum ftdi_chip_type { TYPE_AM=0, TYPE_BM=1, TYPE_2232C=2, TYPE_R=3 }; /// Parity mode for ftdi_set_line_property() enum ftdi_parity_type { NONE=0, ODD=1, EVEN=2, MARK=3, SPACE=4 }; /// Number of stop bits for ftdi_set_line_property() @@ -266,6 +266,7 @@ 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, unsigned char *eeprom); + int ftdi_read_chipid(struct ftdi_context *ftdi, unsigned int *chipid); int ftdi_write_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom); int ftdi_erase_eeprom(struct ftdi_context *ftdi);