Changeset d37d1b77 in mainline for uspace/app/usbinfo/main.c


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        },
Note: See TracChangeset for help on using the changeset viewer.