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?
Please refer the control center';s source code to store the data from an endpoint into a file.
Refer the FileXferBtn_Click event function
- Madhu Sudhan