Changeset 6c1315b in mainline


Ignore:
Timestamp:
2010-10-10T21:17:48Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4971812
Parents:
b8100da
Message:

Add generic USB structures

In particular, added enum for descriptor type (see USB1.1/9.3) and
standard device descriptor (see USB1.1/9.6).

Location:
uspace/lib/usb
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/devreq.h

    rb8100da r6c1315b  
    5151        USB_DEVREQ_GET_INTERFACE = 10,
    5252        USB_DEVREQ_SET_INTERFACE = 11,
    53         USB_DEVREQ_SYNCH_FRAME = 12
     53        USB_DEVREQ_SYNCH_FRAME = 12,
     54        USB_DEVREQ_LAST_STD
    5455} usb_stddevreq_t;
    5556
    56 
     57/** Descriptor type. */
     58typedef enum {
     59        USB_DESCTYPE_DEVICE = 1,
     60        USB_DESCTYPE_CONFIGURATION = 2,
     61        USB_DESCTYPE_STRING = 3,
     62        USB_DESCTYPE_INTERFACE = 4,
     63        USB_DESCTYPE_ENDPOINT = 5
     64} usb_descriptor_type_t;
    5765
    5866#endif
Note: See TracChangeset for help on using the changeset viewer.