X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.h;h=f62982129ec7e3a4b2a887a789aafa59d3ed6d3d;hp=46032e719f7e8002324e7978cc5fca9475171395;hb=388d0297c5540f021d1e9dfa75925e4f8fae03be;hpb=22d12cda4aed8d25fb79588a7261ca489db5ecd7 diff --git a/src/ftdi.h b/src/ftdi.h index 46032e7..f629821 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -22,7 +22,7 @@ #define FTDI_DEFAULT_EEPROM_SIZE 128 /** FTDI chip type */ -enum ftdi_chip_type { TYPE_AM=0, TYPE_BM=1, TYPE_2232C=2, TYPE_R=3 }; +enum ftdi_chip_type { TYPE_AM=0, TYPE_BM=1, TYPE_2232C=2, TYPE_R=3, TYPE_2232H=4, TYPE_4232H=5 }; /** 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() */ @@ -50,7 +50,9 @@ enum ftdi_interface { INTERFACE_ANY = 0, INTERFACE_A = 1, - INTERFACE_B = 2 + INTERFACE_B = 2, + INTERFACE_C = 3, + INTERFACE_D = 4 }; /* Shifting commands IN MPSSE Mode*/ @@ -265,7 +267,7 @@ extern "C" #endif int ftdi_init(struct ftdi_context *ftdi); - struct ftdi_context *ftdi_new(); + struct ftdi_context *ftdi_new(void); int ftdi_set_interface(struct ftdi_context *ftdi, enum ftdi_interface interface); void ftdi_deinit(struct ftdi_context *ftdi); @@ -346,7 +348,7 @@ extern "C" int ftdi_erase_eeprom(struct ftdi_context *ftdi); char *ftdi_get_error_string(struct ftdi_context *ftdi); - + #ifdef __cplusplus } #endif