From owner-freebsd-usb@FreeBSD.ORG Mon Jun 9 05:31:50 2008 Return-Path: Delivered-To: FreeBSD-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A74011065676 for ; Mon, 9 Jun 2008 05:31:50 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.7]) by mx1.freebsd.org (Postfix) with ESMTP id 8037D8FC26 for ; Mon, 9 Jun 2008 05:31:50 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 2838 invoked from network); 9 Jun 2008 05:31:49 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 9 Jun 2008 05:31:49 -0000 Message-ID: <484CBE24.5030704@telenix.org> Date: Mon, 09 Jun 2008 01:22:44 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Alfred Perlstein References: <484BEE1C.8040903@telenix.org> <200806082132.51357.hselasky@c2i.net> <484C46D6.6050908@telenix.org> <200806082310.56920.hselasky@c2i.net> <20080609034252.GT48790@elvis.mu.org> In-Reply-To: <20080609034252.GT48790@elvis.mu.org> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: markus@freebsd.org, FreeBSD USB List Subject: Re: final usb question 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: Mon, 09 Jun 2008 05:31:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alfred Perlstein wrote: > * Hans Petter Selasky [080608 14:09] wrote: >>>> You mean if you can set another USB configuration ? >>> That's what I'm saying SHOULD be possible, but it isn't. >> There will soon be a utility that can do this, so that you can run: >> >> usbconfig -u ugen0 -c 1 >> >> for example to select configuration index 1 for your device. Please note that >> there will be one ugen device for every USB device present in the future! And >> I'm in the future :-) >> > > This is so exciting!!! :) Multi-function usb devices?!?! :) > Sending printer controls through ugen to ulpt!:) I do admit to be extremely curious about it. Since my own current focus is HID, if I assume you weren't talking HID that whole time, then what you were saying was more than a little bit great. In my own direction, I have finally decided to neaten up all of my experimental code, and I found while digging about here and there, that if you excuse some error returns as being wrong, it's only the actual data functions that are wacky, so I've begun rewriting itfor my own project, which means it takes a struct data_item and basically performs a hid_locate (finding the code section for each particular item, and the last piece (hid_get_data() is supposed to used that generated data, and yield the actual data items for use in performing screen acrobatics. The part I need to supply, I can't see any reason I could supply a part that looks very much like what was therer to begin with (excepting it works). You need to realize me coding religion, biasing me terrifically toward safer, more easily to troubleshoot code. To me, it's _WAY_ more important that your code be obvious in function, rather than fast or elegant. My own personal mantra is "Maintainability above all else". I actually think I'm going to be able to do that this time, and nice people have let me do this, not undercut me (and when you go this slowly, I really, really appreciate not being coded into extinction. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFITL4kz62J6PPcoOkRAu1GAKCj4Vz1kCHiIXrZS336C3bGumwvAwCgl7lP KxsGdaPIoK+cnhT0ccYGmAk= =AHH2 -----END PGP SIGNATURE-----