> Hello, 
> I have install the libusb-0.1.8 in order to communicate easily with my HID device 
> which works in interrupt and it can receive and transmit 2 bytes in ep1.
> As soon as I try to read or to write with the functions usb_interrupt_read & 
> usb_interrupt_write
> they return me -16. Has anyone read or/and written with this functions?
> 
> Here is a part of my code:
> buf[1]=55; buf[0]=22;
> num_write_bytes = usb_interrupt_write(udev, 0x01, buf, 16, 500);
>       printf("nb written=%d\n",num_write_bytes);
>       usb_close (udev);
> 
> the size parameter is in bit or byte.
> 
> Many thanks
> 
> B.GIRAUD



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to