From 2938669c3789b6587f6db2fa2192706d6d830580 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Thu, 9 Sep 2010 23:03:46 +0200 Subject: [PATCH] Channel Mode is encoded in bits 0..2, VCP is bit 3 Noisy decode --- src/ftdi.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.1