#include <adt/list.h>
#include <fibril_synch.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <usb/debug.h>
#include <usb/descriptor.h>
#include <usb/classes/classes.h>
Go to the source code of this file.
Data Structures | |
struct | descriptor_dump_t |
Mapping between descriptor id and dumping function. More... | |
Defines | |
#define | BCD_ARGS(a) BCD_INT((a)), BCD_FRAC((a)) |
#define | BCD_FMT "%x.%x" |
#define | BCD_FRAC(a) (((unsigned int)(a)) % 256) |
#define | BCD_INT(a) (((unsigned int)(a)) / 256) |
#define | PRINTLINE(fmt,) |
Prints single line of USB descriptor dump. | |
Functions | |
static void | usb_dump_descriptor_configuration (FILE *, const char *, const char *, const uint8_t *, size_t) |
static void | usb_dump_descriptor_device (FILE *, const char *, const char *, const uint8_t *, size_t) |
static void | usb_dump_descriptor_endpoint (FILE *, const char *, const char *, const uint8_t *, size_t) |
static void | usb_dump_descriptor_generic (FILE *, const char *, const char *, const uint8_t *, size_t) |
static void | usb_dump_descriptor_hid (FILE *, const char *, const char *, const uint8_t *, size_t) |
static void | usb_dump_descriptor_hub (FILE *, const char *, const char *, const uint8_t *, size_t) |
static void | usb_dump_descriptor_interface (FILE *, const char *, const char *, const uint8_t *, size_t) |
static void | usb_dump_descriptor_string (FILE *, const char *, const char *, const uint8_t *, size_t) |
void | usb_dump_standard_descriptor (FILE *output, const char *line_prefix, const char *line_suffix, const uint8_t *descriptor, size_t descriptor_length) |
Dumps standard USB descriptor. | |
Variables | |
static descriptor_dump_t | descriptor_dumpers [] |
Descriptor dumpers mapping. |
Definition in file dump.c.