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

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

cross mob
Anonymous
Not applicable

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.

0 Likes
3 Replies
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

I'm sorry.

   

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

   

Thank you.

0 Likes
Anonymous
Not applicable

"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.

0 Likes