Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Is there an event "USB-transfer completed"?

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



Is there an event "USB-transfer completed"?
Moderator:
RSKV

Post Reply
Follow this topic



Is there an event "USB-transfer completed"?

RobK posted on 06 Jun 2012 11:52 PM PST
Top Contributor
56 Forum Posts

Hi,

in my FX3-firmware I set up the DMA-channels at USB-side to use external DMA-buffers. This works fine so far!

Now I'm looking for a possibility to get signaled new USB-transfers arriving in FX3 while my firmware is handling the data of one received DMA-buffer. The dma-callback doesn't help here since it's only possible to let it raise in case of the event CY_U3P_DMA_CB_RECV_CPLT which occurres only if a DMA-buffer is received by firmware calling CyU3PDmaChannelWaitForRecvBuffer().

Has anybody an idea how can I catch completed USB-transfers in the FX3-firmware?

 

Best regards,

Robert

 




Re: Is there an event "USB-transfer completed"?

dreitz posted on 07 Jun 2012 02:20 PM PST
Top Contributor
74 Forum Posts

It depends on the DMA mode.  If you use auto with signalling, you do not have to move buffers, but you will be notified in a callback of the event.

I use manual DMA mode and the CY_USB_DMA_CB_PROD_EVENT and CY_USB_DMA_CB_CONS_EVENT (depending on the direction of the data) events in the callbacks.






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.