Changeset a822cd8 in mainline for uspace/lib/usb/src/hidparser.c
- Timestamp:
- 2010-12-12T14:16:57Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1f3158c, c9113d2
- Parents:
- a59cdd2 (diff), 0c05496 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
ra59cdd2 ra822cd8 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); 77 78 return EOK; 65 79 } 66 80
Note:
See TracChangeset
for help on using the changeset viewer.