Changes in uspace/lib/usbhid/include/usb/hid/hiddescriptor.h [74b1e40:160b75e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/include/usb/hid/hiddescriptor.h
r74b1e40 r160b75e 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * USB HID report descriptor and report data parser 34 34 */ 35 #ifndef LIBUSB _HIDDESCRIPTOR_H_36 #define LIBUSB _HIDDESCRIPTOR_H_35 #ifndef LIBUSBHID_HIDDESCRIPTOR_H_ 36 #define LIBUSBHID_HIDDESCRIPTOR_H_ 37 37 38 38 #include <stdint.h> … … 42 42 #include <usb/hid/hidtypes.h> 43 43 44 45 /* 46 * Descriptor parser functions 47 */ 48 49 /** */ 44 50 int usb_hid_parse_report_descriptor(usb_hid_report_t *report, 45 51 const uint8_t *data, size_t size); 46 52 53 /** */ 47 54 void usb_hid_free_report(usb_hid_report_t *report); 48 55 56 /** */ 49 57 void usb_hid_descriptor_print(usb_hid_report_t *report); 50 58 59 51 60 int usb_hid_report_init(usb_hid_report_t *report); 52 53 61 int usb_hid_report_append_fields(usb_hid_report_t *report, 54 62 usb_hid_report_item_t *report_item); 55 63 56 64 usb_hid_report_description_t * usb_hid_report_find_description(const usb_hid_report_t *report, uint8_t report_id, usb_hid_report_type_t type); 57 58 65 int usb_hid_report_parse_tag(uint8_t tag, uint8_t class, const uint8_t *data, size_t item_size, 59 66 usb_hid_report_item_t *report_item, usb_hid_report_path_t *usage_path); 60 61 67 int usb_hid_report_parse_main_tag(uint8_t tag, const uint8_t *data, size_t item_size, 62 68 usb_hid_report_item_t *report_item, usb_hid_report_path_t *usage_path); 63 64 69 int usb_hid_report_parse_global_tag(uint8_t tag, const uint8_t *data, size_t item_size, 65 70 usb_hid_report_item_t *report_item, usb_hid_report_path_t *usage_path); 66 67 71 int usb_hid_report_parse_local_tag(uint8_t tag, const uint8_t *data, size_t item_size, 68 72 usb_hid_report_item_t *report_item, usb_hid_report_path_t *usage_path); 69 73 70 74 void usb_hid_descriptor_print_list(link_t *head); 71 72 75 void usb_hid_report_reset_local_items(usb_hid_report_item_t *report_item); 73 74 76 void usb_hid_free_report_list(link_t *head); 75 76 77 usb_hid_report_item_t *usb_hid_report_item_clone(const usb_hid_report_item_t *item); 77 78 78 uint32_t usb_hid_report_tag_data_uint32(const uint8_t *data, size_t size); 79 79 80 80 usb_hid_report_path_t *usb_hid_report_path_try_insert(usb_hid_report_t *report, usb_hid_report_path_t *cmp_path); 81 82 83 81 #endif 84 82 /**
Note:
See TracChangeset
for help on using the changeset viewer.