DartusbhidBindings class
Bindings for hidapi\hidapi\hidapi.h
.
Regenerate bindings with flutter pub run ffigen --config ffigen.yaml
.
Constructors
- DartusbhidBindings.new(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary
. -
DartusbhidBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup
.
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
-
hid_close(
Pointer< hid_device> dev) → void - @brief Close a HID device.
-
hid_enumerate(
int vendor_id, int product_id) → Pointer< hid_device_info> - @brief Enumerate the HID Devices.
-
hid_error(
Pointer< hid_device> dev) → Pointer<WChar> - @brief Get a string describing the last error which occurred.
-
hid_exit(
) → int - @brief Finalize the HIDAPI library.
-
hid_free_enumeration(
Pointer< hid_device_info> devs) → void - @brief Free an enumeration Linked List
-
hid_get_device_info(
Pointer< hid_device> dev) → Pointer<hid_device_info> - @brief Get The struct #hid_device_info from a HID device.
-
hid_get_feature_report(
Pointer< hid_device> dev, Pointer<UnsignedChar> data, int length) → int - @brief Get a feature report from a HID device.
-
hid_get_indexed_string(
Pointer< hid_device> dev, int string_index, Pointer<WChar> string, int maxlen) → int - @brief Get a string from a HID device, based on its string index.
-
hid_get_input_report(
Pointer< hid_device> dev, Pointer<UnsignedChar> data, int length) → int - @brief Get a input report from a HID device.
-
hid_get_manufacturer_string(
Pointer< hid_device> dev, Pointer<WChar> string, int maxlen) → int - @brief Get The Manufacturer String from a HID device.
-
hid_get_product_string(
Pointer< hid_device> dev, Pointer<WChar> string, int maxlen) → int - @brief Get The Product String from a HID device.
-
hid_get_serial_number_string(
Pointer< hid_device> dev, Pointer<WChar> string, int maxlen) → int - @brief Get The Serial Number String from a HID device.
-
hid_init(
) → int - @brief Initialize the HIDAPI library.
-
hid_open(
int vendor_id, int product_id, Pointer< WChar> serial_number) → Pointer<hid_device> - @brief Open a HID device using a Vendor ID (VID), Product ID (PID) and optionally a serial number.
-
hid_open_path(
Pointer< Char> path) → Pointer<hid_device> - @brief Open a HID device by its path name.
-
hid_read(
Pointer< hid_device> dev, Pointer<UnsignedChar> data, int length) → int - @brief Read an Input report from a HID device.
-
hid_read_timeout(
Pointer< hid_device> dev, Pointer<UnsignedChar> data, int length, int milliseconds) → int - @brief Read an Input report from a HID device with timeout.
-
hid_send_feature_report(
Pointer< hid_device> dev, Pointer<UnsignedChar> data, int length) → int - @brief Send a Feature report to the device.
-
hid_set_nonblocking(
Pointer< hid_device> dev, int nonblock) → int - @brief Set the device handle to be non-blocking.
-
hid_version(
) → Pointer< hid_api_version> - @brief Get a runtime version of the library.
-
hid_version_str(
) → Pointer< Char> - @brief Get a runtime version string of the library.
-
hid_write(
Pointer< hid_device> dev, Pointer<UnsignedChar> data, int length) → int - @brief Write an Output report to a HID device.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited