dp.h File Reference

USB descriptor parser. More...

#include <sys/types.h>
#include <usb/usb.h>
#include <usb/descriptor.h>

Go to the source code of this file.

Data Structures

struct  usb_dp_descriptor_nesting_t
 USB descriptors nesting. More...
struct  usb_dp_parser_data_t
 Descriptor parser data. More...
struct  usb_dp_parser_t
 Descriptor parser structure. More...

Functions

uint8_t * usb_dp_get_nested_descriptor (usb_dp_parser_t *parser, usb_dp_parser_data_t *data, uint8_t *parent)
 Find first nested descriptor of given parent.
uint8_t * usb_dp_get_sibling_descriptor (usb_dp_parser_t *parser, usb_dp_parser_data_t *data, uint8_t *parent, uint8_t *sibling)
 Get sibling descriptor.
void usb_dp_walk_simple (uint8_t *descriptors, size_t descriptors_size, usb_dp_descriptor_nesting_t *descriptor_nesting, void(*callback)(uint8_t *, size_t, void *), void *arg)
 Browse flatten descriptor tree.

Variables

usb_dp_descriptor_nesting_t usb_dp_standard_descriptor_nesting []
 Nesting of standard USB descriptors.


Detailed Description

USB descriptor parser.

Definition in file dp.h.


Generated on Thu Jun 2 07:45:54 2011 for HelenOS/USB by  doxygen 1.4.7