How can i use xferdat in slavefifo mode?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 Hi

   

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?

0 Likes
1 Reply
Anonymous
Not applicable

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.

   

Thanks,

   

sai krishna.

0 Likes