why libusb ?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
solata10
Posts: 13
Joined: Sun Dec 13, 2009 3:09 pm

why libusb ?

Post by solata10 » Wed Dec 16, 2009 7:35 pm

hello.

i'm using windows, and as far as i can understand, for HID devices, you dont need any driver.
so why, all of the examples provided with v-usb use libusb as the way to comunicate with hid devices ?

what are the pros and cons of libusb vs windows hid driver ?

thanks

Saimon

Re: why libusb ?

Post by Saimon » Thu Dec 17, 2009 12:56 am

Why do you think, that we are using libusb driver for HID devices? All projects can operate with windows drivers too! And i think you question is not for creating new thread in forum. Try to read more about USB standart and about v-usb too! Good luck, Saimon!

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: why libusb ?

Post by christian » Tue Dec 22, 2009 5:13 pm

If you have a real HID device, you don't need libusb. See the hid-data example. The only limit here is that you have fixed size descriptors for your data.

If you want more fine grained control (like in e.g. hid-custom-rq or custom-class), you need libusb.

Post Reply