Changeset 8865087 in mainline for uspace/app/usbinfo/info.c


Ignore:
Timestamp:
2011-03-17T23:29:16Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
749f18c5
Parents:
a458bc9
Message:

usbinfo recognises HID descriptor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/usbinfo/info.c

    ra458bc9 r8865087  
    4141#include <usb/request.h>
    4242#include <usb/classes/classes.h>
     43#include <usb/classes/hid.h>
    4344#include "usbinfo.h"
    4445
     
    142143            direction == USB_DIRECTION_IN ? "in" : "out",
    143144            (size_t) descriptor->max_packet_size);
     145}
     146
     147static void dump_descriptor_tree_brief_hid(const char *prefix,
     148    usb_standard_hid_descriptor_t *descriptor)
     149{
     150        printf("%sHID (country %d, %d descriptors)\n", prefix,
     151            (int) descriptor->country_code,
     152            (int) descriptor->class_desc_count);
    144153}
    145154
     
    179188                    usb_standard_endpoint_descriptor_t,
    180189                    dump_descriptor_tree_brief_endpoint);
     190                _BRANCH(USB_DESCTYPE_HID,
     191                    usb_standard_hid_descriptor_t,
     192                    dump_descriptor_tree_brief_hid);
    181193
    182194                default:
Note: See TracChangeset for help on using the changeset viewer.