1 Reply Latest reply on Dec 9, 2012 9:40 AM by userc_39074

    How can i use xferdat in slavefifo mode?



      If i want to translate data  to host in slave fifo mode, how can i setting xferdata function parameter in application program?


      Also , could you please let me know how cancomunicate between host and fx2 in slavefifo?


      Specially, if fx2 fifo have full, what mechanism is working?

        • 1. Re: How can i use xferdat in slavefifo mode?

          Hi dv2,


          If you are using Bulk transfers then following is the example function call to read data from the FX2LP device.


          if (USBDevice->BulkInEndPt)
          USBDevice->BulkInEndPt->XferData(buf, length, NULL, true);


          Please refer to CyAPI.pdf for more details on XferData().


          Incase if you are OK with asynchronous transfers then you can refer to "streamer" application source code that comes along with the Cypress suite USB.




          sai krishna.