libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.5-23-g7dfd1d0

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 29 Aug 2023 15:50:45 +0200 (CEST)
The branch, master has been updated
       via  7dfd1d076f14a1b2adbb31e6e8e46aa9f46ba579 (commit)
       via  0b76f232305f15d8615d0f15f9f8bdab8210567c (commit)
      from  629ed337dcc50d73beccf2a7fe4c94c1d0efd9fb (commit)


- Log -----------------------------------------------------------------
commit 7dfd1d076f14a1b2adbb31e6e8e46aa9f46ba579
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date:   Tue Aug 29 15:47:41 2023 +0200

    FT2232C: show mode for B channel
    
    Idea by Yegor Yefremov. Thanks!

commit 0b76f232305f15d8615d0f15f9f8bdab8210567c
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date:   Tue Aug 29 10:50:28 2023 +0200

    FT4232: show mode for both C and D channels

-----------------------------------------------------------------------

Summary of changes:
 src/ftdi.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/ftdi.c b/src/ftdi.c
index 3d16674..4b16468 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -3880,11 +3880,18 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, int 
verbose)
                     (eeprom->data_order)?"LSB":"MSB",
                     (eeprom->flow_control)?"":"No ");
         }
-        if ((ftdi->type == TYPE_2232H) || (ftdi->type == TYPE_4232H))
+        if ((ftdi->type == TYPE_2232H) || (ftdi->type == TYPE_4232H) || 
(ftdi->type == TYPE_2232C))
             fprintf(stdout,"Channel B has Mode %s%s%s\n",
                     channel_mode[eeprom->channel_b_type],
                     (eeprom->channel_b_driver)?" VCP":"",
                     (eeprom->high_current_b)?" High Current IO":"");
+        if (ftdi->type == TYPE_4232H)
+        {
+            fprintf(stdout,"Channel C has Mode UART%s\n",
+                    (eeprom->channel_c_driver)?" VCP":"");
+            fprintf(stdout,"Channel D has Mode UART%s\n",
+                    (eeprom->channel_d_driver)?" VCP":"");
+        }
         if (((ftdi->type == TYPE_BM) || (ftdi->type == TYPE_2232C)) &&
                 eeprom->use_usb_version)
             fprintf(stdout,"Use explicit USB Version 
%04x\n",eeprom->usb_version);


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.5-23-g7dfd1d0, libftdi-git <=