final usb question

Chuck Robey chuckr at telenix.org
Mon Jun 9 05:31:50 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alfred Perlstein wrote:
> * Hans Petter Selasky <hselasky at c2i.net> [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-----


More information about the freebsd-usb mailing list