DVUsb class

The USB bus, under DV.Platform.device.usb.

Constructors

DVUsb()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

claim(int handle, int interface) → Future<bool>
Claims an interface so transfers on it belong to this process.
close(int handle) → Future<bool>
Releases every claimed interface and closes the handle.
devices() → Future<List<DVUsbDevice>>
The devices on the bus.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open({required int bus, required int address}) → Future<int>
Opens the device on bus at address, returning a handle.
read(int handle, int endpoint, {int max = 512, int timeoutMs = 1000}) → Future<List<int>>
Reads from an endpoint. The direction bit is set for you.
toString() → String
A string representation of this object.
inherited
write(int handle, int endpoint, List<int> bytes, {int timeoutMs = 1000}) → Future<int>
Writes to an endpoint, answering how many bytes the device took.

Operators

operator ==(Object other) → bool
The equality operator.
inherited