>>>>> "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
--
Uwe Bonnes bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|