GD32F10x USB-Device: USBD_Protocol_Exported_Defines

GD32F103 Firmware

GD32F10x USB-Device  V1.0.0
GD32F10x USB-Device
USBD_Protocol_Exported_Defines

Macros

#define NULL   0
 
#define USB_DEV_QUALIFIER_DESC_LEN   0x0A
 
#define USB_CFG_DESC_LEN   0x09
 
#define USBD_LANGID_STR_IDX   0x00
 
#define USBD_MFC_STR_IDX   0x01
 
#define USBD_PRODUCT_STR_IDX   0x02
 
#define USBD_SERIAL_STR_IDX   0x03
 
#define USBD_CONFIG_STR_IDX   0x04
 
#define USBD_INTERFACE_STR_IDX   0x05
 
#define USB_STANDARD_REQ   0x00
 
#define USB_CLASS_REQ   0x20
 
#define USB_VENDOR_REQ   0x40
 
#define USB_REQ_MASK   0x60
 
#define USB_REQTYPE_DEVICE   0x00
 
#define USB_REQTYPE_INTERFACE   0x01
 
#define USB_REQTYPE_ENDPOINT   0x02
 
#define USB_REQ_RECIPIENT_MASK   0x1f
 
#define USBREQ_GET_STATUS   0x00
 
#define USBREQ_CLEAR_FEATURE   0x01
 
#define USBREQ_SET_FEATURE   0x03
 
#define USBREQ_SET_ADDRESS   0x05
 
#define USBREQ_GET_DESCRIPTOR   0x06
 
#define USBREQ_GET_CONFIGURATION   0x08
 
#define USBREQ_SET_CONFIGURATION   0x09
 
#define USBREQ_GET_INTERFACE   0x0A
 
#define USBREQ_SET_INTERFACE   0x0B
 
#define USB_DESCTYPE_DEVICE   0x01
 
#define USB_DESCTYPE_CONFIGURATION   0x02
 
#define USB_DESCTYPE_STRING   0x03
 
#define USB_DESCTYPE_INTERFACE   0x04
 
#define USB_DESCTYPE_ENDPOINT   0x05
 
#define USB_DESCTYPE_DEVICE_QUALIFIER   0x06
 
#define USB_DESCTYPE_OTHER_SPEED_CONFIGURATION   0x07
 
#define USB_DESCTYPE_BOS   0x0F
 
#define USB_STATUS_REMOTE_WAKEUP   2
 
#define USB_STATUS_SELF_POWERED   1
 
#define USB_FEATURE_ENDP_HALT   0
 
#define USB_FEATURE_REMOTE_WAKEUP   1
 
#define USB_FEATURE_TEST_MODE   2
 

Detailed Description

Generated on Fri Feb 6 2015 14:56:36 for GD32F10x USB-Device by   doxygen 1.8.8