Hello!
I have read the documentation but I was unable to find how to create an output interrupt endpoint. All I found was that when I enable the macro USB_CFG_IMPLEMENT_FN_WRITEOUT, the function usbFunctionWriteOut is called. The problem is what endpoint number I use in the host call libusb_interrupt_transfer(), since when I want to write it would expect an output endpoint.
Thank you very much!
How to create an out interrupt endpoint?
Re: How to create an out interrupt endpoint?
look at the hid-data example.
hid-data
This example demonstrates how the HID class can be misused to transfer
arbitrary data over HID feature reports. This technique is of great value
on Windows because no driver DLLs are needed (the hid-custom-rq example
still requires the libusb-win32 DLL, although it may be in the program's
directory). The host side application requires no installation, it can
even be started directly from a CD. This example also demonstrates how
to transfer data using usbFunctionWrite() and usbFunctionRead().