Crate usb_util

source ·
Expand description

USB device access and descriptor manipulation.

Modules§

Structs§

  • Standard USB configuration descriptor as defined in USB 2.0 chapter 9, not including the standard header.
  • Standard USB descriptor header common to all descriptor types.
  • Device represents a USB device.
  • Standard USB device descriptor as defined in USB 2.0 chapter 9, not including the standard header.
  • DmaBuffer represents a DMA buffer lent by a device
  • Standard USB endpoint descriptor as defined in USB 2.0 chapter 9, not including the standard header.
  • Standard USB interface descriptor as defined in USB 2.0 chapter 9, not including the standard header.
  • Transfer contains the information necessary to submit a USB request and, once it has been submitted and completed, contains the response.
  • TransferHandle is a handle that allows cancellation of in-flight transfers between submit_transfer() and get_completed_transfer(). Attempting to cancel a transfer that has already completed is safe and will return an error.
  • RequestSetup is first part of control transfer buffer.

Enums§

Constants§

Functions§

  • Construct a bmRequestType value for a control request.
  • Given data containing a full set of descriptors as provided by the Linux kernel usbdevfs descriptors file, parse the descriptors into a tree data structure.

Type Aliases§