自定义hid设备set_report设置和get_report获取报告描述符控制8字节数据

8826阅读 0评论2010-01-07 gliethttp
分类:

Set Report
Allows the host to send a report to the device.
Offset Field Size Value Description
0 bmRequestType 1 21h
4..0: Recipient ...00001  Interface
6..5: Type .01.....  Class
7: Direction 0.......  Host-to-Device
1 bRequest 1 09h Set Report
2 wValue.LowByte 1 00h Report ID
3 wValue.HiByte 1 03h Feature Report
4 wIndex 2 0000h Interface
6 wLength 2 0040h Report Length

Get Report
Allows the host to receive a report via the control pipe.
Offset Field Size Value Description
0 bmRequestType 1 A1h
4..0: Recipient ...00001  Interface
6..5: Type .01.....  Class
7: Direction 1.......  Device-to-Host
1 bRequest 1 01h Get Report
2 wValue.LowByte 1 00h Report ID
3 wValue.HiByte 1 03h Feature Report
4 wIndex 2 0000h Interface
6 wLength 2 0040h Report Length

上一篇:usb token后台守护进程citic_certd.exe
下一篇:MontaVista embedded Linux software