Changes in uspace/lib/usbhid/include/usb/hid/hidparser.h [5f9b81af:f3b39b4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/include/usb/hid/hidparser.h
r5f9b81af 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); 49 int usb_hid_parse_report(const usb_hid_report_t *report, const uint8_t *data, 50 size_t size, uint8_t *report_id); 52 51 53 52 /* 54 53 * Output report parser functions 55 54 */ 56 /** Allocates output report buffer*/57 55 uint8_t *usb_hid_report_output(usb_hid_report_t *report, size_t *size, 58 56 uint8_t report_id); 59 57 60 /** Frees output report buffer*/61 58 void usb_hid_report_output_free(uint8_t *output); 62 59 63 /** Returns size of report in items */ 64 size_t usb_hid_report_size(usb_hid_report_t *report, uint8_t report_id, 65 usb_hid_report_type_t type); 60 size_t usb_hid_report_size(usb_hid_report_t *report, uint8_t report_id, 61 usb_hid_report_type_t type); 66 62 67 size_t usb_hid_report_byte_size(usb_hid_report_t *report, uint8_t report_id, 68 63 size_t usb_hid_report_byte_size(usb_hid_report_t *report, uint8_t report_id, 64 usb_hid_report_type_t type); 69 65 70 66 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); 67 int usb_hid_report_output_translate(usb_hid_report_t *report, 68 uint8_t report_id, uint8_t *buffer, size_t size); 74 69 75 70 76 /* * */77 usb_hid_report_field_t *usb_hid_report_get_sibling(usb_hid_report_t *report, 78 usb_hid_report_field_t *field,79 usb_hid_report_path_t *path, 80 int flags, 81 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); 82 77 83 /** */84 78 uint8_t usb_hid_get_next_report_id(usb_hid_report_t *report, 85 uint8_t report_id, 86 usb_hid_report_type_t type); 79 uint8_t report_id, usb_hid_report_type_t type); 87 80 88 81 #endif
Note:
See TracChangeset
for help on using the changeset viewer.