X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.h;h=0348eea04fe71b300dce077ccd37b105809d1e50;hp=fc60ec1da4d568c91c14330370f80ba6f7b5a4bd;hb=b25d91651338fdf323bcfae5f66d47fec69819f7;hpb=2d790e377ad5f1c61b38436aa3d5a201c9184028 diff --git a/src/ftdi.h b/src/ftdi.h index fc60ec1..0348eea 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -2,7 +2,7 @@ ftdi.h - description ------------------- begin : Fri Apr 4 2003 - copyright : (C) 2003-2011 by Intra2net AG and the libftdi developers + copyright : (C) 2003-2013 by Intra2net AG and the libftdi developers email : opensource@intra2net.com ***************************************************************************/ @@ -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,10 +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); - void ftdi_async_complete(struct ftdi_context *ftdi, int wait_for_more); + struct ftdi_transfer_control *ftdi_write_data_submit(struct ftdi_context *ftdi, unsigned char *buf, int size); struct ftdi_transfer_control *ftdi_read_data_submit(struct ftdi_context *ftdi, unsigned char *buf, int size); int ftdi_transfer_data_done(struct ftdi_transfer_control *tc);