1 Reply Latest reply on Sep 10, 2016 1:04 AM by apapc_1569406

    Multiple usb device to work at same time

          I want to ask : can I create two threads for the two usb device, and the two usb devices work at the same time。
          I find (Home › Cypress Developer Community › Forums )
          A developer said : you cannot communicate with two devices at the same time using CyAPI.lib.
          Now, Actually, I use two usb devices, One thread one device, another thread to another device.
          when I open second usb device by USBDevice->Open(1),the first device will be closed?
          in the C++ helpful doc (CyAPI.chm), When Open( ) is called, it first checks to see if the CCyUSBDevice object is already opened to one of the attached devices. If so, it calls Close( ), then proceeds.
          It means that, at first I can't USBDevice->Open(0) in the first thread, and then USBDevice->Open(1) in the second thread.