|
libxr
1.0
Want to be the best embedded framework
|
USB 标准请求 SETUP 包(固定8字节) Standard USB setup packet (8 bytes) More...
#include <core.hpp>
Data Fields | |
| uint8_t | bmRequestType |
| uint8_t | bRequest |
| 请求码 / Request code (e.g., GET_DESCRIPTOR) | |
| uint16_t | wValue |
| 参数字段,含请求相关值 / Value field (e.g., descriptor type/index) | |
| uint16_t | wIndex |
| 对象索引,如接口号或端点号 / Index (e.g., interface or endpoint) | |
| uint16_t | wLength |
| 数据阶段长度 / Number of bytes in data stage | |
USB 标准请求 SETUP 包(固定8字节) Standard USB setup packet (8 bytes)
对应 USB 协议中控制传输的第1阶段,用于描述请求类型与参数。 Used in control transfers to carry request and arguments.
| uint8_t LibXR::USB::SetupPacket::bmRequestType |
| uint8_t LibXR::USB::SetupPacket::bRequest |
| uint16_t LibXR::USB::SetupPacket::wIndex |
| uint16_t LibXR::USB::SetupPacket::wLength |
| uint16_t LibXR::USB::SetupPacket::wValue |