libftdi: (tomj) new variable: bitbang_mode to support FT2232C's SPI bitbang mode
[libftdi] / ftdi / ftdi.h
index 6fa8a60..d33f38e 100644 (file)
@@ -40,8 +40,9 @@ struct ftdi_context {
     // Endpoints
     int in_ep;
     int out_ep;      // 1 or 2
-
-    int reading;     // 0 or 1 - for performance increase in SPI mode
+    
+    /* 1: (default) Normal bitbang mode, 2: FT2232C SPI bitbang mode */
+    unsigned char bitbang_mode;
 
     // misc
     char *error_str;