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
***************************************************************************/
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,
};
/**
#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
int ftdi_readstream(struct ftdi_context *ftdi, FTDIStreamCallback *callback,
void *userdata, int packetsPerTransfer, int numTransfers);
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);
int ftdi_transfer_data_done(struct ftdi_transfer_control *tc);