1 Reply Latest reply on Feb 9, 2016 2:58 AM by Madhu Lakshmipathy

    How to bind a file handle with Cypress usb endpoint?

    guyingjie_1489886

      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.