#include <usbhid_iface.h>
Data Fields | |
int(* | get_event )(ddf_fun_t *fun, uint8_t *buffer, size_t size, size_t *act_size, int *event_nr, unsigned int flags) |
Get single event from the HID device. | |
size_t(* | get_event_length )(ddf_fun_t *fun) |
Get size of the event in bytes. | |
int(* | get_report_descriptor )(ddf_fun_t *fun, uint8_t *desc, size_t size, size_t *act_size) |
Get the report descriptor from the HID device. | |
size_t(* | get_report_descriptor_length )(ddf_fun_t *fun) |
Get size of the report descriptor in bytes. |
Definition at line 94 of file usbhid_iface.h.
int(* get_event)(ddf_fun_t *fun, uint8_t *buffer, size_t size, size_t *act_size, int *event_nr, unsigned int flags) |
Get single event from the HID device.
[in] | fun | DDF function answering the request. |
[out] | buffer | Buffer with raw data from the device. |
[out] | act_size | Actual number of returned events. |
[in] | flags | Flags (see USBHID_IFACE_FLAG_*). |
size_t(* get_event_length)(ddf_fun_t *fun) |
Get size of the event in bytes.
[in] | fun | DDF function answering the request. |
int(* get_report_descriptor)(ddf_fun_t *fun, uint8_t *desc, size_t size, size_t *act_size) |
Get the report descriptor from the HID device.
[in] | fun | DDF function answering the request. |
[out] | desc | Buffer with the report descriptor. |
[in] | size | Size of the allocated desc buffer. |
[out] | act_size | Actual size of the report descriptor returned. |
size_t(* get_report_descriptor_length)(ddf_fun_t *fun) |
Get size of the report descriptor in bytes.
[in] | fun | DDF function answering the request. |