libftdi Archives

Subject: Re: [PATCH] FT4232: show mode for both C and D channels

From: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: thomas.jarosch@xxxxxxxxxxxxx
Date: Tue, 29 Aug 2023 12:01:12 +0200
On Tue, Aug 29, 2023 at 10:51 AM <yegorslists@xxxxxxxxxxxxxx> wrote:
>
> From: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
>
> ---
>  src/ftdi.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/src/ftdi.c b/src/ftdi.c
> index 0a7fb27..e16816e 100644
> --- a/src/ftdi.c
> +++ b/src/ftdi.c
> @@ -3881,6 +3881,13 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, int 
> verbose)
>                      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);

Btw, should we also show channel B driver option for FT2232C?

Yegor

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

Current Thread