Changeset 74b1e40 in mainline for uspace/lib/usbhid/include/usb/hid/hiddescriptor.h
- Timestamp:
- 2011-05-20T12:49:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5499a8b, c9256c5
- Parents:
- 7941bd6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/include/usb/hid/hiddescriptor.h
r7941bd6 r74b1e40 27 27 */ 28 28 29 /** @addtogroup libusb hid29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 33 33 * USB HID report descriptor and report data parser 34 34 */ 35 #ifndef LIBUSB HID_HIDDESCRIPTOR_H_36 #define LIBUSB HID_HIDDESCRIPTOR_H_35 #ifndef LIBUSB_HIDDESCRIPTOR_H_ 36 #define LIBUSB_HIDDESCRIPTOR_H_ 37 37 38 38 #include <stdint.h> … … 42 42 #include <usb/hid/hidtypes.h> 43 43 44 45 /*46 * Descriptor parser functions47 */48 49 /** */50 44 int usb_hid_parse_report_descriptor(usb_hid_report_t *report, 51 45 const uint8_t *data, size_t size); 52 46 53 /** */54 47 void usb_hid_free_report(usb_hid_report_t *report); 55 48 56 /** */57 49 void usb_hid_descriptor_print(usb_hid_report_t *report); 58 50 51 int usb_hid_report_init(usb_hid_report_t *report); 59 52 60 int usb_hid_report_init(usb_hid_report_t *report);61 53 int usb_hid_report_append_fields(usb_hid_report_t *report, 62 54 usb_hid_report_item_t *report_item); 63 55 64 56 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 65 58 int usb_hid_report_parse_tag(uint8_t tag, uint8_t class, const uint8_t *data, size_t item_size, 66 59 usb_hid_report_item_t *report_item, usb_hid_report_path_t *usage_path); 60 67 61 int usb_hid_report_parse_main_tag(uint8_t tag, const uint8_t *data, size_t item_size, 68 62 usb_hid_report_item_t *report_item, usb_hid_report_path_t *usage_path); 63 69 64 int usb_hid_report_parse_global_tag(uint8_t tag, const uint8_t *data, size_t item_size, 70 65 usb_hid_report_item_t *report_item, usb_hid_report_path_t *usage_path); 66 71 67 int usb_hid_report_parse_local_tag(uint8_t tag, const uint8_t *data, size_t item_size, 72 68 usb_hid_report_item_t *report_item, usb_hid_report_path_t *usage_path); 73 69 74 70 void usb_hid_descriptor_print_list(link_t *head); 71 75 72 void usb_hid_report_reset_local_items(usb_hid_report_item_t *report_item); 73 76 74 void usb_hid_free_report_list(link_t *head); 75 77 76 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 81 83 #endif 82 84 /**
Note:
See TracChangeset
for help on using the changeset viewer.