X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=src%2Fftdi.h;h=38b066832ae749fbefda2ac18828506e529bfcb6;hb=be4bae37b3f851d7e06610fe474d84a3b2371efb;hp=fc60ec1da4d568c91c14330370f80ba6f7b5a4bd;hpb=2d790e377ad5f1c61b38436aa3d5a201c9184028;p=libftdi diff --git a/src/ftdi.h b/src/ftdi.h index fc60ec1..38b0668 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -301,7 +301,13 @@ enum ftdi_eeprom_value POWER_SAVE = 45, CLOCK_POLARITY = 46, DATA_ORDER = 47, - FLOW_CONTROL = 48 + FLOW_CONTROL = 48, + CHANNEL_C_DRIVER = 49, + CHANNEL_D_DRIVER = 50, + CHANNEL_A_RS485 = 51, + CHANNEL_B_RS485 = 52, + CHANNEL_C_RS485 = 53, + CHANNEL_D_RS485 = 54, }; /** @@ -354,6 +360,8 @@ enum ftdi_cbush_func {/* FIXME: Recheck value, especially the last */ #define CHANNEL_IS_CPU 0x4 #define CHANNEL_IS_FT1284 0x8 +#define CHANNEL_IS_RS485 0x10 + #define DRIVE_4MA 0 #define DRIVE_8MA 1 #define DRIVE_12MA 2 @@ -466,9 +474,9 @@ extern "C" int ftdi_write_data_set_chunksize(struct ftdi_context *ftdi, unsigned int chunksize); int ftdi_write_data_get_chunksize(struct ftdi_context *ftdi, unsigned int *chunksize); - int ftdi_readstream(struct ftdi_context *ftdi, FTDIStreamCallback *callback, + int ftdi_readstream(struct ftdi_context *ftdi, FTDIStreamCallback *callback, void *userdata, int packetsPerTransfer, int numTransfers); - int ftdi_write_data_async(struct ftdi_context *ftdi, unsigned char *buf, int size); + struct ftdi_transfer_control *ftdi_write_data_submit(struct ftdi_context *ftdi, unsigned char *buf, int size); void ftdi_async_complete(struct ftdi_context *ftdi, int wait_for_more); struct ftdi_transfer_control *ftdi_read_data_submit(struct ftdi_context *ftdi, unsigned char *buf, int size);