Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Any example or document for get image data and transfer it to EP0

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



Any example or document for get image data and transfer it to EP0
Moderator:
RSKV

Post Reply
Follow this topic



Any example or document for get image data and transfer it to EP0

allenpeng posted on 22 Jun 2012 3:50 AM PST
Senior Member
12 Forum Posts

Hi,

I added the GPIF Designer example - "ImageSensorInterface.cydsn"'s  header file in UVC example - "cyfxuvcinmem". I also loaded CyFxGpifConfig and start the state machine.

But, I don't know how to get the image data from DMA buffer and transfer to Endpoint0. Is there any sample code or document I could refer ?

1. Should I create thread0 and therad1 ?

2. Should I count tick by myself for line valid?

3. How to get the image data from DMA buffer ?

Thank you.

 




Re: Any example or document for get image data and transfer it to EP0

aasi posted on 22 Jun 2012 04:53 AM PST
Cypress Employee
1073 Forum Posts

Hi,

EP0 is control endpoint. Why do you want to transfer the image data through EP0?

Please add more information on what you're trying to achieve so that we can understand the requirement better.

Regads,

Anand



Re: Any example or document for get image data and transfer it to EP0

allenpeng posted on 24 Jun 2012 06:58 PM PST
Senior Member
12 Forum Posts

I'm sorry.

My question is how to get image data. Is any sample code or document to describe it ?

Thank you.

 



Re: Any example or document for get image data and transfer it to EP0

RSKV posted on 25 Jun 2012 11:06 PM PST
Cypress Employee
655 Forum Posts

"USBVideoClassBulk" and "USBVideoClass" example projects should give you an idea on UVC class.

"SlaveFifoAsync" example project should give you an idea on transfering the data on GPIF side to USB side.

Regards,

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.