>>>>> "Ramkumar" == Ramkumar Jayaraman <ramkumarj2000commits@xxxxxxxxx> writes:
Ramkumar> --f46d0417070184fea104b07d1b16 Content-Type: text/plain;
Ramkumar> charset=ISO-8859-1
Ramkumar> Hi,
Ramkumar> I have a question on the libftdi-0.19 library API. My
Ramkumar> understanding based on AN 108 is that FT2232H has 2 channels
Ramkumar> with each channel having 16-bit IO lines. I have a code
Ramkumar> similar as below.
Ramkumar> ret = ftdi_init(&ctx); ret = ftdi_set_interface(&ctx,
Ramkumar> INTERFACE_A); <== Talk to 1 st channel ret = ftdi_usb_open(
Ramkumar> &ctx, 0x0403, 0x6010); ret = ftdi_set_bitmode( &ctx, 0xFF,
Ramkumar> BITMODE_MPSSE); <== Turn ON MPSSE mode
Ramkumar> It looks like ftdi_set_bitmode() can configure only the
Ramkumar> ADBUS[7:0]. Is there a way to set directions of ACBUS[7:0]
Ramkumar> before entering the MPSSE mode ?
Ramkumar> Similarly, ftdi_read_pins() seem to populate the status of
Ramkumar> pins in the 'unsigned char *pins' pointer. Would it safe to
Ramkumar> assume the pins as 2 bytes always ?
Have a look at AN_108
3.6 Set / Read Data Bits High / Low Bytes
Ramkumar> Hi,<br><br>I have a question on the libftdi-0.19 library
Plase, no HTML in mail!
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
|