|
Files |
file | desctree.c |
| Descriptor tree dump.
|
file | dev.c |
| Representation of queried device.
|
file | dump.c |
| USB querying.
|
file | info.c |
| Dumping of generic device properties.
|
file | main.c |
| USB querying.
|
file | usbinfo.h |
| Common header for usbinfo application.
|
Data Structures |
struct | usbinfo_action_t |
struct | usbinfo_device_t |
Defines |
#define | BYTES_PER_LINE 12 |
#define | INDENT " " |
#define | LAST_NESTING { -1, -1 } |
#define | NAME "usbinfo" |
#define | NESTING(parentname, childname) |
Typedefs |
typedef void(*) | dump_descriptor_in_tree_t (uint8_t *, size_t, void *) |
Functions |
void | browse_descriptor_tree (uint8_t *descriptors, size_t descriptors_size, usb_dp_descriptor_nesting_t *descriptor_nesting, dump_descriptor_in_tree_t callback, size_t initial_depth, void *arg) |
static void | browse_descriptor_tree_internal (usb_dp_parser_t *parser, usb_dp_parser_data_t *data, uint8_t *root, size_t depth, dump_descriptor_in_tree_t callback, void *arg) |
void | destroy_device (usbinfo_device_t *dev) |
void | dump_buffer (const char *msg, size_t indent, const uint8_t *buffer, size_t length) |
void | dump_descriptor_tree (uint8_t *descriptors, size_t length) |
void | dump_descriptor_tree_brief (usbinfo_device_t *dev) |
static void | dump_descriptor_tree_brief_configuration (const char *prefix, usb_standard_configuration_descriptor_t *descriptor) |
static void | dump_descriptor_tree_brief_device (const char *prefix, usb_standard_device_descriptor_t *descriptor) |
static void | dump_descriptor_tree_brief_endpoint (const char *prefix, usb_standard_endpoint_descriptor_t *descriptor) |
static void | dump_descriptor_tree_brief_hid (const char *prefix, usb_standard_hid_descriptor_t *descriptor) |
static void | dump_descriptor_tree_brief_hub (const char *prefix, usb_hub_descriptor_header_t *descriptor) |
static void | dump_descriptor_tree_brief_interface (const char *prefix, usb_standard_interface_descriptor_t *descriptor) |
static void | dump_descriptor_tree_callback (uint8_t *descriptor, size_t depth, void *arg) |
void | dump_descriptor_tree_full (usbinfo_device_t *dev) |
void | dump_device_match_ids (usbinfo_device_t *dev) |
void | dump_match_ids (match_id_list_t *matches, const char *line_prefix) |
static void | dump_match_ids_from_interface (uint8_t *descriptor, size_t depth, void *arg) |
void | dump_short_device_identification (usbinfo_device_t *dev) |
void | dump_status (usbinfo_device_t *dev) |
void | dump_strings (usbinfo_device_t *dev) |
static void | dump_tree (usb_dp_parser_t *parser, usb_dp_parser_data_t *data) |
static void | dump_tree_descriptor (uint8_t *descriptor, size_t depth) |
static void | dump_tree_internal (usb_dp_parser_t *parser, usb_dp_parser_data_t *data, uint8_t *root, size_t depth) |
void | dump_usb_descriptor (uint8_t *descriptor, size_t size) |
static void | find_string_indexes_callback (uint8_t *descriptor, size_t depth, void *arg) |
const char * | get_indent (size_t level) |
static void | internal_error (int err) |
int | main (int argc, char *argv[]) |
| Main entry point.
|
usbinfo_device_t * | prepare_device (const char *name, devman_handle_t hc_handle, usb_address_t dev_addr) |
static void | print_usage (char *app_name) |
Variables |
static usbinfo_action_t | actions [] |
static usb_dp_descriptor_nesting_t | descriptor_nesting [] |
static struct option | long_options [] |
static usb_dp_parser_t | parser |
static const char * | short_options = "himtTsS" |
The intended usage of this application is to query new USB devices for their descriptors etc. to simplify driver writing.