Changeset d37d1b77 in mainline


Ignore:
Timestamp:
2011-06-17T17:41:36Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d12065
Parents:
9f7276d
Message:

usbinfo can print (raw) HID report descriptor

Location:
uspace/app/usbinfo
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/usbinfo/Makefile

    r9f7276d rd37d1b77  
    4343        dev.c \
    4444        dump.c \
     45        hid.c \
    4546        info.c \
    4647        main.c
  • uspace/app/usbinfo/main.c

    r9f7276d rd37d1b77  
    6565        _OPTION("-s --strings", "Try to print all string descriptors.");
    6666        _OPTION("-S --status", "Get status of the device.");
     67        _OPTION("-r --hid-report", "Dump HID report descriptor.");
    6768
    6869        printf("\n");
     
    8283        {"strings", no_argument, NULL, 's'},
    8384        {"status", no_argument, NULL, 'S'},
     85        {"hid-report", no_argument, NULL, 'r'},
    8486        {0, 0, NULL, 0}
    8587};
    86 static const char *short_options = "himtTsS";
     88static const char *short_options = "himtTsSr";
    8789
    8890static usbinfo_action_t actions[] = {
     
    115117                .opt = 'S',
    116118                .action = dump_status,
     119                .active = false
     120        },
     121        {
     122                .opt = 'r',
     123                .action = dump_hidreport,
    117124                .active = false
    118125        },
  • uspace/app/usbinfo/usbinfo.h

    r9f7276d rd37d1b77  
    8585void dump_strings(usbinfo_device_t *);
    8686void dump_status(usbinfo_device_t *);
     87void dump_hidreport(usbinfo_device_t *);
    8788
    8889
Note: See TracChangeset for help on using the changeset viewer.