Changeset a6add7a in mainline for uspace/lib/usb/include/usb/dp.h
- Timestamp:
- 2011-03-04T23:35:22Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 960bee9
- Parents:
- d78a32f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/dp.h
rd78a32f ra6add7a 31 31 */ 32 32 /** @file 33 * @briefUSB descriptor parser.33 * USB descriptor parser. 34 34 */ 35 35 #ifndef LIBUSB_DP_H_ … … 40 40 #include <usb/descriptor.h> 41 41 42 /** USB descriptors nesting. 43 * The nesting describes the logical tree USB descriptors form 44 * (e.g. that endpoint descriptor belongs to interface or that 45 * interface belongs to configuration). 46 * 47 * See usb_descriptor_type_t for descriptor constants. 48 */ 42 49 typedef struct { 50 /** Child descriptor id. */ 43 51 int child; 52 /** Parent descriptor id. */ 44 53 int parent; 45 54 } usb_dp_descriptor_nesting_t; … … 47 56 extern usb_dp_descriptor_nesting_t usb_dp_standard_descriptor_nesting[]; 48 57 58 /** Descriptor parser structure. */ 49 59 typedef struct { 60 /** Used descriptor nesting. */ 50 61 usb_dp_descriptor_nesting_t *nesting; 51 62 } usb_dp_parser_t; 52 63 64 /** Descriptor parser data. */ 53 65 typedef struct { 66 /** Data to be parsed. */ 54 67 uint8_t *data; 68 /** Size of input data in bytes. */ 55 69 size_t size; 70 /** Custom argument. */ 56 71 void *arg; 57 72 } usb_dp_parser_data_t;
Note:
See TracChangeset
for help on using the changeset viewer.