Changes in uspace/lib/usbhid/include/usb/hid/hidparser.h [160b75e:f3b39b4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/include/usb/hid/hidparser.h
r160b75e rf3b39b4 47 47 * Input report parser functions 48 48 */ 49 /** */ 50 int usb_hid_parse_report(const usb_hid_report_t *report, const uint8_t *data, 51 size_t size, uint8_t *report_id); 52 53 /** */ 54 size_t usb_hid_report_input_length(const usb_hid_report_t *report, 55 usb_hid_report_path_t *path, int flags); 49 int usb_hid_parse_report(const usb_hid_report_t *report, const uint8_t *data, 50 size_t size, uint8_t *report_id); 56 51 57 52 /* 58 53 * Output report parser functions 59 54 */ 60 /** Allocates output report buffer*/61 55 uint8_t *usb_hid_report_output(usb_hid_report_t *report, size_t *size, 62 56 uint8_t report_id); 63 57 64 /** Frees output report buffer*/65 58 void usb_hid_report_output_free(uint8_t *output); 66 59 67 /** Returns size of output for given usage path */ 68 size_t usb_hid_report_output_size(usb_hid_report_t *report, 69 usb_hid_report_path_t *path, int flags); 60 size_t usb_hid_report_size(usb_hid_report_t *report, uint8_t report_id, 61 usb_hid_report_type_t type); 70 62 71 /** Makes the output report buffer by translated given data */ 72 int usb_hid_report_output_translate(usb_hid_report_t *report, uint8_t report_id, 73 uint8_t *buffer, size_t size); 63 size_t usb_hid_report_byte_size(usb_hid_report_t *report, uint8_t report_id, 64 usb_hid_report_type_t type); 74 65 75 /** */76 usb_hid_report_field_t *usb_hid_report_get_sibling(usb_hid_report_t *report,77 usb_hid_report_field_t *field,78 usb_hid_report_path_t *path,79 int flags,80 usb_hid_report_type_t type);81 66 82 /** */ 83 uint8_t usb_hid_report_get_report_id(usb_hid_report_t *report, 84 uint8_t report_id, 85 usb_hid_report_type_t type); 67 int usb_hid_report_output_translate(usb_hid_report_t *report, 68 uint8_t report_id, uint8_t *buffer, size_t size); 69 70 71 /* 72 * Report descriptor structure observing functions 73 */ 74 usb_hid_report_field_t *usb_hid_report_get_sibling(usb_hid_report_t *report, 75 usb_hid_report_field_t *field, usb_hid_report_path_t *path, 76 int flags, usb_hid_report_type_t type); 77 78 uint8_t usb_hid_get_next_report_id(usb_hid_report_t *report, 79 uint8_t report_id, usb_hid_report_type_t type); 86 80 87 81 #endif
Note:
See TracChangeset
for help on using the changeset viewer.