Changes in uspace/lib/usb/src/hidparser.c [bf2063e9:1103374] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
rbf2063e9 r1103374 40 40 * @param parser Opaque HID report parser structure. 41 41 * @param data Data describing the report. 42 * @param size Size of the descriptor in bytes. 42 43 * @return Error code. 43 44 */ 44 45 int usb_hid_parse_report_descriptor(usb_hid_report_parser_t *parser, 45 const uint8_t *data )46 const uint8_t *data, size_t size) 46 47 { 47 48 return ENOTSUP; … … 54 55 * @param parser Opaque HID report parser structure. 55 56 * @param data Data for the report. 57 * @param size Size of the data in bytes. 56 58 * @param callbacks Callbacks for report actions. 57 59 * @param arg Custom argument (passed through to the callbacks). … … 59 61 */ 60 62 int usb_hid_parse_report(const usb_hid_report_parser_t *parser, 61 const uint8_t *data, 63 const uint8_t *data, size_t size, 62 64 const usb_hid_report_in_callbacks_t *callbacks, void *arg) 63 65 { 64 return ENOTSUP; 66 int i; 67 68 // TODO: parse report 69 70 uint16_t keys[6]; 71 72 for (i = 0; i < 6; ++i) { 73 keys[i] = data[i]; 74 } 75 76 callbacks->keyboard(keys, 6, arg); 65 77 } 66 78
Note:
See TracChangeset
for help on using the changeset viewer.