Changes in uspace/lib/usb/src/hidparser.c [e7726a4:bf2063e9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
re7726a4 rbf2063e9 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.43 42 * @return Error code. 44 43 */ 45 44 int usb_hid_parse_report_descriptor(usb_hid_report_parser_t *parser, 46 const uint8_t *data , size_t size)45 const uint8_t *data) 47 46 { 48 47 return ENOTSUP; … … 55 54 * @param parser Opaque HID report parser structure. 56 55 * @param data Data for the report. 57 * @param size Size of the data in bytes.58 56 * @param callbacks Callbacks for report actions. 59 57 * @param arg Custom argument (passed through to the callbacks). … … 61 59 */ 62 60 int usb_hid_parse_report(const usb_hid_report_parser_t *parser, 63 const uint8_t *data, size_t size,61 const uint8_t *data, 64 62 const usb_hid_report_in_callbacks_t *callbacks, void *arg) 65 63 { 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); 77 78 return EOK; 64 return ENOTSUP; 79 65 } 80 66
Note:
See TracChangeset
for help on using the changeset viewer.