usb驅(qū)動(dòng)程序源代碼
推薦 + 挑錯(cuò) + 收藏(0) + 用戶評(píng)論(0)
-usb驅(qū)動(dòng)程序源代碼:define USB_RT_DEVICE_TO_HOST?????????????????? 0x80
#define USB_RT_TYPE_MASK??????????????????????? 0x60
#define USB_RT_TYPE_STANDARD??????????????????? 0x00
#define USB_RT_TYPE_CLASS?????????????????????? 0x20
#define USB_RT_TYPE_VENDOR????????????????????? 0x40
#define USB_RT_RECIPIENT_MASK?????????????????? 0x1F
#define USB_RT_RECIPIENT_DEVICE???????????????? 0x00
#define USB_RT_RECIPIENT_INTERFACE????????????? 0x01
#define USB_RT_RECIPIENT_ENDPOINT?????????????? 0x02
//
// Definitions of the bit fields in the wIndex field of setup packets where the
// wIndex field is used to specify a endpoint (i.e. Clear_Feature, Get_Status,
// and Set_Feature).
//
#define USB_ENDPOINT_DIRECTION_MASK???????????? 0x0080
#define USB_ENDPOINT_ADDRESS_MASK?????????????? 0x000F
//
// Definitions of the features that can be specified in the wValue field of a
// Clear_Feature or Set_Feature setup packet.
//
#define USB_FEATURE_ENDPOINT_STALL????????????? 0x0000
#define USB_FEATURE_REMOTE_WAKEUP?????????????? 0x0001
#define USB_FEATURE_POWER_D0??????????????????? 0x0002
#define USB_FEATURE_POWER_D1??????????????????? 0x0003
#define USB_FEATURE_POWER_D2??????????????????? 0x0004
#define USB_FEATURE_POWER_D3??????????????????? 0x0005
//
// Definitions of the wValue field for a Get_Descriptor setup packet.
//
#define USB_DESCRIPTOR_TYPE_MASK??????????????? 0xFF00
#define USB_DESCRIPTOR_DEVICE?????????????????? 0x0100
#define USB_DESCRIPTOR_CONFIGURATION??????????? 0x0200
#define USB_DESCRIPTOR_STRING?????????????????? 0x0300
#define USB_DESCRIPTOR_INTERFACE??????????????? 0x0400
#define USB_DESCRIPTOR_ENDPOINT???????????????? 0x0500
#define USB_DESCRIPTOR_INDEX_MASK?????????????? 0x00FF
//
非常好我支持^.^
(7) 100%
不好我反對(duì)
(0) 0%
