device uhid - read only device?
Hans Petter Selasky
hselasky at c2i.net
Thu Jun 8 21:30:37 UTC 2006
UHID is read and write.
On Thursday 08 June 2006 14:56, Jindra Fucik wrote:
> Hi list,
> I'm trying to create usb device based on PIC16C745 chip
> I have done test device (buttons and leds)
> My device working as generic uhid device.
> It is mean, that uhid under FreeBSD are "read only"???
The sourcecode of UHID resides in /sys/dev/usb/uhid.c . If you look there you
will se that it is possible to write UHID in two ways.
1) writing to /dev/uhid0
2) using the IOCTL USB_SET_REPORT
More information about the freebsd-usb