General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
-
christmas108
- Posts: 2
- Joined: Sat Jan 19, 2008 11:39 am
Post
by christmas108 » Sat Jan 19, 2008 12:10 pm
avrusb is good,but it is always use control transfer,use function usb_control_msg().Now, i use PIDUSBD12, I want to use libusb communicate with endpoint 1or2.for the hosts,i don't known use which function,how to use that fuction.who can help me?thank you at advance.
i was puzzled by it for several days.
-
christian
- Objective Development
- Posts: 1443
- Joined: Thu Nov 09, 2006 11:46 am
Post
by christian » Mon Jan 21, 2008 7:52 pm
In Libusb, you use the same function for all endpoints (regardless of the number), just set the endpoint number parameter differently.
You only need different functions for interrupt- or bulk transfers. Please note that bulk transfers are not allowed on low speed devices.