chrome.usb library

Use the chrome.usb API to interact with connected USB devices. This API provides access to USB operations from within the context of an app. Using this API, apps can function as drivers for hardware devices.

Errors generated by this API are reported by setting runtime.lastError and executing the function's regular callback. The callback's regular parameters will be undefined in this case.

Classes

ChromeUsb
ConfigDescriptor
ConnectionHandle
ControlTransferInfo
Direction
Direction, Recipient, RequestType, and TransferType all map to their namesakes within the USB specification.
EndpointDescriptor
EnumerateDevicesAndRequestAccessOptions
EnumerateDevicesOptions
GenericTransferInfo
InterfaceDescriptor
IsochronousTransferInfo
Recipient
RequestType
SynchronizationType
For interrupt and isochronous modes, SynchronizationType and UsageType map to their namesakes within the USB specification.
TransferResultInfo
TransferType
UsageType
UsbDevice
UsbDeviceFilter
UsbDevicePromptOptions

Properties

usb ChromeUsb
Accessor for the chrome.usb namespace.
final