Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2006 19:07:10 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: device uhid - read only device?
Message-ID:  <200606081907.11984.hselasky@c2i.net>
In-Reply-To: <028901c68afa$f2a5d850$9ebf9109@PC2088>
References:  <028901c68afa$f2a5d850$9ebf9109@PC2088>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Jindra,

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
> (http://ww1.microchip.com/downloads/en/DeviceDoc/41124c.pdf)
>
> 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

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606081907.11984.hselasky>