libftdi Archives

Subject: Re: Accessing second port of FT2232H

From: Joachim Schambach <jschamba@xxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 13 Jun 2014 14:16:40 -0500
Thanks for this info.
So what is the function that his enum is used in?

Jo

On 6/13/2014 2:13 PM, Uwe Bonnes wrote:
>>>>>> "Joachim" == Joachim Schambach <jschamba@xxxxxxxxxxxxxxxxxx> writes:
>     Joachim> Hi, I have been using libftd2xx to communicate with a FT2232H
>     JoachAim> chip in one of my devices. This chip has two FIFOs that can be
>     Joachim> addressed independently over the same USB interface, and in the
>     Joachim> case of libftd2xx one uses the serial number appended with
>     Joachim> either "A" or "B" to access these two different interfaces.  I
>     Joachim> am now in the process of porting my software to libftdi and was
>     Joachim> wondering how one handles this in this API. When I use the
>     Joachim> supplied "find_all" example, the FT2232H chip appear only as
>     Joachim> one device, not as two as was the case with libftd2xx. So is
>     Joachim> the function "ftdi_usb_open_desc_index " the function to use to
>     Joachim> accomplish this? If so, would the indexes be "0" and "1"?
>     Joachim> Sorry if this is a trivial question that was asked before, I am
>     Joachim> still kind of new to libftdi...  thanks, Jo
>
> A look in the header file will show:
> /** Port interface for chips with multiple interfaces */
> enum ftdi_interface
> {
>     INTERFACE_ANY = 0,
>     INTERFACE_A   = 1,
>     INTERFACE_B   = 2,
>     INTERFACE_C   = 3,
>     INTERFACE_D   = 4
> };
>
> Hope this helps.
>
> Bye
>

-- 
Dr Joachim Schambach                 tel: +1 512 471 1303
The University of Texas at Austin    fax: +1 512 471 9637    
Department of Physics                email1: jschamba@xxxxxxxxxxxxxxxxxx
1 University Station C1600           email2: jschamba@xxxxxxxxxxxxxxxxx
Austin, Texas 78712-0264, USA


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

Current Thread