How to bind a file handle with Cypress usb endpoint?

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

cross mob
Anonymous
Not applicable

Hi there,

   

I create a file handle for cypress device using CreateFile.

   

rx=CreateFile(devpath, GENERIC_READ, FILE_SHARE_READ,NULL,OPEN_EXSITING,0,NULL). 

   

Now I want to bind the handle 'rx' with a specific usb endpoint, say 0x81.

   

But I didn't find IOCTL_xxx code that can bind a handle with a endpoint in cyioctl.h.

   

And there is no example codes in cypress's website.  How can I achieve this? 

   

Thank you. 

0 Likes
1 Reply
Anonymous
Not applicable

Hi,

   

Please refer the control center';s source code to store the data from an endpoint into a file.

   

Refer the FileXferBtn_Click event function

   

Regards,

   

- Madhu Sudhan

0 Likes