USB 标准设备请求
结构体定义
typedef struct __attribute__ ((packed)){
union {
struct __attribute__ ((packed)) {
uint8_t recipient : 5; ///< Recipient type usb_request_recipient_t.
uint8_t type : 2; ///< Request type usb_request_type_t.
uint8_t direction : 1; ///< Direction type. usb_dir_t
} bmRequestType_bit;
uint8_t bmRequestType;
};
uint8_t bRequest;
uint16_t wValue;
uint16_t wIndex;
uint16_t wLength;
} usb_control_request_t;
bmRequestType
一个字节,使用结构体的位域表示</