|
| static int | h_hid_read (struct h_hid_device *hid_dev, uint8_t *data, size_t size, int milliseconds) |
| | Read the next input report, if any, from the given hid device.
|
| |
| static int | h_hid_write (struct h_hid_device *hid_dev, const uint8_t *data, size_t size) |
| | Write an output report to the given device.
|
| |
| static int | h_hid_get_feature (struct h_hid_device *hid_dev, uint8_t report_num, uint8_t *data, size_t size) |
| | Get a numbered feature report.
|
| |
| static int | h_hid_get_feature_timeout (struct h_hid_device *hid_dev, void *data, size_t size, uint32_t timeout) |
| | Get a feature report with a timeout.
|
| |
| static int | h_hid_set_feature (struct h_hid_device *hid_dev, const uint8_t *data, size_t size) |
| | Set a feature report.
|
| |
| static int | h_hid_get_physical_address (struct h_hid_device *hid_dev, uint8_t *data, size_t size) |
| | Get the physical address.
|
| |
| static void | h_hid_destroy (struct h_hid_device *hid_dev) |
| | Close and free the given device.
|
| |
|
|
int(* | read )(struct h_hid_device *hid_dev, uint8_t *data, size_t size, int milliseconds) |
| |
|
int(* | write )(struct h_hid_device *hid_dev, const uint8_t *data, size_t size) |
| |
|
int(* | get_feature )(struct h_hid_device *hid_dev, uint8_t report_num, uint8_t *data, size_t size) |
| |
|
int(* | get_feature_timeout )(struct h_hid_device *hid_dev, void *data, size_t size, uint32_t timeout) |
| |
|
int(* | set_feature )(struct h_hid_device *hid_dev, const uint8_t *data, size_t size) |
| |
|
int(* | get_physical_address )(struct h_hid_device *hid_dev, uint8_t *data, size_t size) |
| |
|
void(* | destroy )(struct h_hid_device *hid_dev) |
| |
Representing a single hid interface on a device.
| static int h_hid_get_physical_address |
( |
struct h_hid_device * |
hid_dev, |
|
|
uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inlinestatic |
Get the physical address.
For USB devices, the string contains the physical path to the device (the USB controller, hubs, ports, etc). For Bluetooth *devices, the string contains the hardware (MAC) address of the device.