From: Uwe Bonnes Date: Thu, 9 Sep 2010 21:03:46 +0000 (+0200) Subject: Channel Mode is encoded in bits 0..2, VCP is bit 3 Noisy decode X-Git-Tag: v1.0rc1~133^2~104 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=2938669c3789b6587f6db2fa2192706d6d830580 Channel Mode is encoded in bits 0..2, VCP is bit 3 Noisy decode --- diff --git a/src/ftdi.h b/src/ftdi.h index e7de304..0b4a487 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -210,7 +210,7 @@ struct ftdi_eeprom /* 2232D/H(/FT4432H?) specific */ /* Hardware type, 0 = RS232 Uart, 1 = 245 FIFO, 2 = CPU FIFO, - 3 = OPTO Isolate */ + 4 = OPTO Isolate */ int channel_a_type; int channel_b_type; /* Driver Type, 1 = VCP */ @@ -350,10 +350,10 @@ struct ftdi_device_list #define CHANNEL_IS_UART 0x0 #define CHANNEL_IS_245 0x1 #define CHANNEL_IS_CPU 0x2 -#define CHANNEL_IS_OPTO 0x3 +#define CHANNEL_IS_OPTO 0x4 /** Driver Type. */ -#define DRIVER_VCP 0x04 +#define DRIVER_VCP 0x08 /** High current drive. */ #define HIGH_CURRENT_DRIVE 0x10