HID class

Wrap around the hid_device pointer.

Constructors

HID({int idVendor = 0, int idProduct = 0, String? serial})

Properties

hashCode int
The hash code for this object.
no setterinherited
idProduct int
final
idVendor int
final
nonblocking bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serial String?
final

Methods

close() → void
getError() String
getFeatureReport(int index, {dynamic buffLen = 1024}) Future<Uint8List?>
getIndexedString(int index, {int max = 256}) Future<String?>
getManufacturerString({int max = 256}) Future<String?>
getProductString({int max = 256}) Future<String?>
getSerialNumberString({int max = 256}) Future<String?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() int
call hid_open to open the specified device.
read({dynamic len = 1024, dynamic timeout = 0}) Future<Uint8List?>
sendFeatureReport(Uint8List data) Future<int>
toString() String
A string representation of this object.
inherited
write(Uint8List data) Future<int>

Operators

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

Static Methods

exit() → dynamic
Expose the hid_exit function.
init() → dynamic
Expose the hid_init function.