Expand description
This crate provides a safe wrapper around the native libusb
library.
Structs§
- Config
Descriptor - Describes a configuration.
- Context
- A
libusb
context. - Device
- A reference to a USB device.
- Device
Descriptor - Describes a device.
- Device
Handle - A handle to an open USB device.
- Device
List - A list of detected USB devices.
- Devices
- Iterator over detected USB devices.
- Endpoint
Descriptor - Describes an endpoint.
- Endpoint
Descriptors - Iterator over an interface’s endpoint descriptors.
- Interface
- A device interface.
- Interface
Descriptor - Describes an alternate setting for an interface.
- Interface
Descriptors - Iterator over an interface’s descriptors.
- Interfaces
- Iterator over a configuration’s interfaces.
- Language
- A language used to read string descriptors from USB devices.
- Library
Version - A structure that describes the version of the underlying
libusb
library. - Version
- A three-part version consisting of major, minor, and sub minor components.
Enums§
- Direction
- Transfer and endpoint directions.
- Error
- Errors returned by the
libusb
library. - LogLevel
- Library logging levels.
- Primary
Language - Primary language families.
- Recipient
- Recipients of control transfers.
- Request
Type - Types of control transfers.
- Speed
- Device speeds. Indicates the speed at which a device is operating.
- SubLanguage
- Language dialects and writing systems.
- Sync
Type - Isochronous synchronization mode.
- Transfer
Type - An endpoint’s transfer type.
- Usage
Type - Isochronous usage type.
Traits§
Functions§
- request_
type - Builds a value for the
bmRequestType
field of a control transfer setup packet. - version
- Returns a structure with the version of the running libusb library.
Type Aliases§
- Registration
- Result
- A result of a function that may return a
Error
.