Changeset 09ab0a9a in mainline for uspace/lib/usbhid/include
- Timestamp:
- 2018-09-13T12:05:53Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- Location:
- uspace/lib/usbhid/include/usb/hid
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/include/usb/hid/hid.h
rb2aaaa0 r09ab0a9a 69 69 } usb_hid_iface_protocol_t; 70 70 71 72 71 #endif 73 72 /** -
uspace/lib/usbhid/include/usb/hid/hid_report_items.h
rb2aaaa0 r09ab0a9a 38 38 #include <stdint.h> 39 39 40 41 40 /* 42 41 * Item prefix … … 57 56 #define USB_HID_ITEM_IS_LONG(data) (data == 0xFE) 58 57 59 60 58 /* 61 59 * Extended usage macros … … 70 68 /** Cuts usage of the extended usage */ 71 69 #define USB_HID_EXTENDED_USAGE(usage) (usage & 0xFFFF) 72 73 70 74 71 /* … … 143 140 #define USB_HID_ITEM_FLAG_BUFFERED(flags) ((flags & 0x100) == 0x100) 144 141 145 146 147 142 /* MAIN ITEMS */ 148 143 … … 185 180 */ 186 181 #define USB_HID_REPORT_TAG_END_COLLECTION 0xC 187 188 189 182 190 183 /* GLOBAL ITEMS */ … … 273 266 #define USB_HID_REPORT_TAG_POP 0xB 274 267 275 276 277 268 /* LOCAL ITEMS */ 278 269 … … 348 339 #define USB_HID_REPORT_TAG_DELIMITER 0xA 349 340 350 351 352 341 #endif 353 342 /** -
uspace/lib/usbhid/include/usb/hid/hiddescriptor.h
rb2aaaa0 r09ab0a9a 87 87 usb_hid_report_path_t *cmp_path); 88 88 89 90 89 #endif 91 90 /** -
uspace/lib/usbhid/include/usb/hid/hidparser.h
rb2aaaa0 r09ab0a9a 43 43 #include <usb/hid/hiddescriptor.h> 44 44 45 46 45 /* 47 46 * Input report parser functions … … 64 63 usb_hid_report_type_t type); 65 64 66 67 65 errno_t usb_hid_report_output_translate(usb_hid_report_t *report, 68 66 uint8_t report_id, uint8_t *buffer, size_t size); 69 70 67 71 68 /* -
uspace/lib/usbhid/include/usb/hid/hidpath.h
rb2aaaa0 r09ab0a9a 41 41 #include <adt/list.h> 42 42 43 44 45 43 /* 46 44 * Flags of usage paths comparison modes. … … 74 72 #define USB_HID_PATH_COMPARE_ANYWHERE 8 75 73 76 77 74 /** 78 75 * Item of usage path structure. Last item of linked list describes one item … … 93 90 } usb_hid_report_usage_path_t; 94 91 95 96 97 92 /** 98 93 * USB HID usage path structure. … … 112 107 list_t items; /* of usb_hid_report_usage_path_t */ 113 108 } usb_hid_report_path_t; 114 115 109 116 110 usb_hid_report_path_t *usb_hid_report_path(void); -
uspace/lib/usbhid/include/usb/hid/hidtypes.h
rb2aaaa0 r09ab0a9a 39 39 #include <adt/list.h> 40 40 41 42 43 41 /** 44 42 * Maximum amount of specified usages for one report item … … 68 66 #define USB_HID_INT32_TO_UINT32(x, size) \ 69 67 (((x) < 0 ) ? ((1 << (size)) + (x)) : (x)) 70 71 72 68 73 69 /** … … 87 83 } usb_hid_report_type_t; 88 84 89 90 91 85 /** 92 86 * Description of all reports described in one report descriptor. … … 113 107 } usb_hid_report_t; 114 108 115 116 109 /** 117 110 * Description of one concrete report … … 136 129 link_t reports_link; 137 130 } usb_hid_report_description_t; 138 139 131 140 132 /** … … 202 194 link_t ritems_link; 203 195 } usb_hid_report_field_t; 204 205 206 196 207 197 /** … … 316 306 }; 317 307 318 319 320 308 #endif 321 309 /** -
uspace/lib/usbhid/include/usb/hid/request.h
rb2aaaa0 r09ab0a9a 42 42 #include <usb/dev/pipes.h> 43 43 44 45 46 44 errno_t usbhid_req_set_report(usb_pipe_t *ctrl_pipe, int iface_no, 47 45 usb_hid_report_type_t type, uint8_t *buffer, size_t buf_size); … … 61 59 errno_t usbhid_req_get_idle(usb_pipe_t *ctrl_pipe, int iface_no, uint8_t *duration); 62 60 63 64 65 61 #endif /* USB_KBD_HIDREQ_H_ */ 66 62 -
uspace/lib/usbhid/include/usb/hid/usages/core.h
rb2aaaa0 r09ab0a9a 71 71 } usb_hidut_usage_consumer_t; 72 72 73 74 73 #endif 75 74 /** -
uspace/lib/usbhid/include/usb/hid/usages/kbdgen.h
rb2aaaa0 r09ab0a9a 54 54 * into a single file. 55 55 */ 56 57 56 58 57 #ifndef USB_HIDUT_KBD_KEY … … 164 163 __NONPRINT(UP_ARROW, 0x52); 165 164 166 167 168 169 165 /* USB_HIDUT_KBD_KEY(, 0x, '', '', 0, 0) */ 170 166 … … 174 170 * @} 175 171 */ 176
Note:
See TracChangeset
for help on using the changeset viewer.