Nut/OS  5.0.5
API Reference
usb_def.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define REQUEST_TYPE   0x60
#define STANDARD_REQUEST   0x00
#define CLASS_REQUEST   0x20
#define VENDOR_REQUEST   0x40
#define RECIPIENT   0x1F

Typedefs

typedef enum _RECIPIENT_TYPE RECIPIENT_TYPE
typedef enum _STANDARD_REQUESTS STANDARD_REQUESTS
typedef enum _DESCRIPTOR_TYPE DESCRIPTOR_TYPE
typedef enum _FEATURE_SELECTOR FEATURE_SELECTOR

Enumerations

enum  _RECIPIENT_TYPE { DEVICE_RECIPIENT, INTERFACE_RECIPIENT, ENDPOINT_RECIPIENT, OTHER_RECIPIENT }
enum  _STANDARD_REQUESTS {
  GET_STATUS = 0, CLEAR_FEATURE, RESERVED1, SET_FEATURE,
  RESERVED2, SET_ADDRESS, GET_DESCRIPTOR, SET_DESCRIPTOR,
  GET_CONFIGURATION, SET_CONFIGURATION, GET_INTERFACE, SET_INTERFACE,
  TOTAL_sREQUEST, SYNCH_FRAME = 12
}
enum  _DESCRIPTOR_TYPE {
  DEVICE_DESCRIPTOR = 1, CONFIG_DESCRIPTOR, STRING_DESCRIPTOR, INTERFACE_DESCRIPTOR,
  ENDPOINT_DESCRIPTOR
}
enum  _FEATURE_SELECTOR { ENDPOINT_STALL, DEVICE_REMOTE_WAKEUP }

Define Documentation

#define REQUEST_TYPE   0x60
#define STANDARD_REQUEST   0x00
#define CLASS_REQUEST   0x20
#define VENDOR_REQUEST   0x40
#define RECIPIENT   0x1F

Typedef Documentation


Enumeration Type Documentation

Enumerator:
DEVICE_RECIPIENT 
INTERFACE_RECIPIENT 
ENDPOINT_RECIPIENT 
OTHER_RECIPIENT 
Enumerator:
GET_STATUS 
CLEAR_FEATURE 
RESERVED1 
SET_FEATURE 
RESERVED2 
SET_ADDRESS 
GET_DESCRIPTOR 
SET_DESCRIPTOR 
GET_CONFIGURATION 
SET_CONFIGURATION 
GET_INTERFACE 
SET_INTERFACE 
TOTAL_sREQUEST 
SYNCH_FRAME 
Enumerator:
DEVICE_DESCRIPTOR 
CONFIG_DESCRIPTOR 
STRING_DESCRIPTOR 
INTERFACE_DESCRIPTOR 
ENDPOINT_DESCRIPTOR 
Enumerator:
ENDPOINT_STALL 
DEVICE_REMOTE_WAKEUP