On Tue, Nov 10, 2009 at 3:56 PM, Emmanuel Blot <[email protected]> wrote: > > I'm not sure what is the proper/recommended way to use two or more > FTDI interfaces with the same chip, from the same process. >
I have been creating a context and doing an open on each interface. Here's a simple python example. #!/usr/bin/python import ftdi, time contextC = ftdi.ftdi_context() ftdi.ftdi_init( contextC ) ftdi.ftdi_set_interface( contextC, ftdi.INTERFACE_C ) ftdi.ftdi_usb_open(contextC, 0x0403, 0x6011) contextB = ftdi.ftdi_context() ftdi.ftdi_init( contextB ) ftdi.ftdi_set_interface( contextB, ftdi.INTERFACE_B ) ftdi.ftdi_usb_open(contextB, 0x0403, 0x6011) -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
