Re: OS independent , Platform independent USB device driver



Hi Tim,
I have to disgree with you, because this kind of assertion ....
Ok. We'll agree to disagree on this.

Libusb provides an interface that is much like WinUSB on Windows.  Neither
of them are extra-friendly easy access wrappers.  Both are just mappings of
the kernel-level interfaces to user-mode.  In order to use either libusb or
WinUSB successfully, you really do have to write a user-mode device driver.
You have to understand descriptors, classes, interfaces, endpoints, pipes,
packets, frames, URBs, and control messages.  It requires a level of
expertise that I associate with "device drivers", not "easy access
wrappers".
What you are describing here is the standard USB communications and
infrastructure formats as described in Chapter 8 (as I could remember)
on the USB spec. Who ever uses Libusb surely needs to understand how
USB works. But as far as I am concerned that code does NOT become a
"User space device driver" just because it has to comply with USB
communications spec. As far as I know libUsb based user code does not
have Hardware specific interactions nor time critical response needs
nor interrupts. All of these gets handled on the lower level native
device driver.
Cheers
Janaka
.



Relevant Pages

  • USB Device Driver Source Code (for Sale)
    ... USB Video Device Driver ... - Stream Interface for HID Device Driver ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Do I need a new power supply?
    ... The BSO messages say device error or device driver error. ... USB hub from monitor ... if you need the BSOD message ... If the name of a device driver is mentioned for each BSOD, ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: USB device driver resources
    ... Since few WM5 devices can be USB hosts, ... Paul T. ... I'm being involved in development of an USB device driver for Windows ...
    (microsoft.public.windowsce.platbuilder)
  • Re: USB ?
    ... device driver for the USB device. ... device driver, or the USB protocol specification for the device so that you ... functions createfile, writefile, readfile and deviceiocontrol to communicate ... I saw System.IO.Ports can now communicate with COM ports. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: User-mode handle & USB device plug/unplug
    ... Observed this on some app working with USB storage flash drives. ... > handle (normally the user-mode application would register for device ... > Leo Havmøller. ...
    (microsoft.public.development.device.drivers)