hidapi.bindings

Undocumented in source.

Members

Aliases

hid_device
alias hid_device = hid_device_
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

hid_close
void hid_close(hid_device* device)

@brief Close a HID device.

hid_enumerate
hid_device_info* hid_enumerate(ushort vendor_id, ushort product_id)

@brief Enumerate the HID Devices.

hid_error
const(wchar_t)* hid_error(hid_device* device)

@brief Get a string describing the last error which occurred.

hid_exit
int hid_exit()

@brief Finalize the HIDAPI library.

hid_free_enumeration
void hid_free_enumeration(hid_device_info* devs)

@brief Free an enumeration Linked List

hid_get_feature_report
int hid_get_feature_report(hid_device* device, ubyte* data, size_t length)

@brief Get a feature report from a HID device.

hid_get_indexed_string
int hid_get_indexed_string(hid_device* device, int string_index, wchar_t* string, size_t maxlen)

@brief Get a string from a HID device, based on its string index.

hid_get_manufacturer_string
int hid_get_manufacturer_string(hid_device* device, wchar_t* string, size_t maxlen)

@brief Get The Manufacturer String from a HID device.

hid_get_product_string
int hid_get_product_string(hid_device* device, wchar_t* string, size_t maxlen)

@brief Get The Product String from a HID device.

hid_get_serial_number_string
int hid_get_serial_number_string(hid_device* device, wchar_t* string, size_t maxlen)

@brief Get The Serial Number String from a HID device.

hid_init
int hid_init()

@brief Initialize the HIDAPI library.

hid_open
hid_device* hid_open(ushort vendor_id, ushort product_id, const(wchar_t)* serial_number)

@brief Open a HID device using a Vendor ID (VID), Product ID (PID) and optionally a serial number.

hid_open_path
hid_device* hid_open_path(const(char)* path)

@brief Open a HID device by its path name.

hid_read
int hid_read(hid_device* device, ubyte* data, size_t length)

@brief Read an Input report from a HID device.

hid_read_timeout
int hid_read_timeout(hid_device* dev, ubyte* data, size_t length, int milliseconds)

@brief Read an Input report from a HID device with timeout.

hid_send_feature_report
int hid_send_feature_report(hid_device* device, const(ubyte)* data, size_t length)

@brief Send a Feature report to the device.

hid_set_nonblocking
int hid_set_nonblocking(hid_device* device, int nonblock)

@brief Set the device handle to be non-blocking.

hid_write
int hid_write(hid_device* device, const(ubyte)* data, size_t length)

@brief Write an Output report to a HID device.

Structs

hid_device_
struct hid_device_
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
hid_device_info
struct hid_device_info

hidapi info structure

Meta