How to create an out interrupt endpoint?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Posts: 1
Joined: Tue May 20, 2014 12:16 pm

How to create an out interrupt endpoint?

Post by soysanti » Tue May 20, 2014 12:26 pm

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!

Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: How to create an out interrupt endpoint?

Post by ulao » Tue Jun 03, 2014 8:45 pm

look at the hid-data example.

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().

Post Reply