66 return hid_dev->
read(hid_dev, data, size, milliseconds);
73 os_hid_write(
struct os_hid_device *hid_dev,
const uint8_t *data,
size_t size)
75 return hid_dev->
write(hid_dev, data, size);
90 return hid_dev->
get_feature(hid_dev, report_num, data, size);
133 os_hid_open_hidraw(
const char *path,
struct os_hid_device **out_hid);
Auto detect OS and certain features.
int(* read)(struct os_hid_device *hid_dev, uint8_t *data, size_t size, int milliseconds)
Definition: os_hid.h:28
int(* get_feature)(struct os_hid_device *hid_dev, uint8_t report_num, uint8_t *data, size_t size)
Definition: os_hid.h:37
int(* set_feature)(struct os_hid_device *hid_dev, const uint8_t *data, size_t size)
Definition: os_hid.h:47
Representing a single hid interface on a device.
Definition: os_hid.h:26
void(* destroy)(struct os_hid_device *hid_dev)
Definition: os_hid.h:51
int(* get_feature_timeout)(struct os_hid_device *hid_dev, void *data, size_t size, uint32_t timeout)
Definition: os_hid.h:42
int(* write)(struct os_hid_device *hid_dev, const uint8_t *data, size_t size)
Definition: os_hid.h:33