Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hidparser.c

    re7726a4 rbf2063e9  
    4040 * @param parser Opaque HID report parser structure.
    4141 * @param data Data describing the report.
    42  * @param size Size of the descriptor in bytes.
    4342 * @return Error code.
    4443 */
    4544int usb_hid_parse_report_descriptor(usb_hid_report_parser_t *parser,
    46     const uint8_t *data, size_t size)
     45    const uint8_t *data)
    4746{
    4847        return ENOTSUP;
     
    5554 * @param parser Opaque HID report parser structure.
    5655 * @param data Data for the report.
    57  * @param size Size of the data in bytes.
    5856 * @param callbacks Callbacks for report actions.
    5957 * @param arg Custom argument (passed through to the callbacks).
     
    6159 */
    6260int usb_hid_parse_report(const usb_hid_report_parser_t *parser, 
    63     const uint8_t *data, size_t size,
     61    const uint8_t *data,
    6462    const usb_hid_report_in_callbacks_t *callbacks, void *arg)
    6563{
    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;
    7965}
    8066
Note: See TracChangeset for help on using the changeset viewer.