Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > How can i use xferdat in slavefifo mode?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



How can i use xferdat in slavefifo mode?
Moderator:
RSKV

Post Reply
Follow this topic



How can i use xferdat in slavefifo mode?

dv2 posted on 06 Dec 2012 6:37 PM PST
Top Contributor
113 Forum Posts

 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?




Re: How can i use xferdat in slavefifo mode?

RSKV posted on 09 Dec 2012 07:40 AM PST
Cypress Employee
851 Forum Posts

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.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20