From owner-freebsd-usb@FreeBSD.ORG Thu Jun 8 21:30:36 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B31D916FB47 for ; Thu, 8 Jun 2006 17:07:20 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from mail42.e.nsc.no (mail42.e.nsc.no [193.213.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A9DD43D68 for ; Thu, 8 Jun 2006 17:07:09 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from Unknown-00-c0-9f-49-78-d8.lan (ti131310a080-10195.bb.online.no [85.165.231.211]) by mail42.nsc.no (8.13.6/8.13.5) with ESMTP id k58H78aI000046; Thu, 8 Jun 2006 19:07:08 +0200 (CEST) From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 8 Jun 2006 19:07:10 +0200 User-Agent: KMail/1.7 References: <028901c68afa$f2a5d850$9ebf9109@PC2088> In-Reply-To: <028901c68afa$f2a5d850$9ebf9109@PC2088> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606081907.11984.hselasky@c2i.net> Cc: Subject: Re: device uhid - read only device? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:30:37 -0000 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