SET_REPORT:主机发送一个Report给设备,用以设置input,output或者feature
域 | 值 | 描述 |
bmRequestType | 0x21 | |
bRequest | 0x09 | |
wValue | 高字节表示报告类型 0x01:input 0x02utput 0x03:feature other:reserved 低字节表示ReportID,如不使用设为0 | |
wIndex | HID的interface索引值 | |
wLength | Report长度 | |
Data | Report内容 |
GET_IDLE
域 | 值 | 描述 |
bmRequestType | 0xA1 | |
bRequest | 0x02 | |
wValue | 高字节0 低字节表示ReportID,如不使用设为0 | |
wIndex | HID的interface索引值 | |
wLength | 1 | |
Data | 空闲速率 |
域 | 值 | 描述 |
bmRequestType | 0x21 | |
bRequest | 0x0A | |
wValue | 新的速率 低字节表示ReportID,如不使用设为0 | |
wIndex | HID的interface索引值 | |
wLength | 0 | |
Data | 无 |
GET_PROTOCOL
域 | 值 | 描述 |
bmRequestType | 0xA1 | |
bRequest | 0x03 | |
wValue | 0 | |
wIndex | HID的interface索引值 | |
wLength | 1 | |
Data | 0 = Boot Protocol 1 = Report Protocol |
SET_PROTOCOL
域 | 值 | 描述 |
bmRequestType | 0x21 | |
bRequest | 0x0B | |
wValue | 0 = Boot Protocol 1 = Report Protocol | |
wIndex | HID的interface索引值 | |
wLength | 0 | |
Data | 无 |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |