請問?CH549 USB HID feature report 的發(fā)送和接收如何實現(xiàn),能否提供代碼以供參考。
使用的部分HID報告描述符:
0x0a,?0x01,?0x02,?/*???Usage?(Event:?Sensor?State)?*/???? 0x15,?0x00,?/*???Logical?Minimum?(0)?*/???? 0x25,?0x06,?/*???Logical?Maximum?(6)?*/???? 0xa1,?0x02,?/*???Collection?(Logical)?*/???? 0x0a,?0x00,?0x08,?/*????Usage?(Sensor?State:?Undefined)?*/???? 0x0a,?0x01,?0x08,?/*????Usage?(Sensor?State:?Ready)?*/???? 0x0a,?0x02,?0x08,?/*????Usage?(Sensor?State:?Not?Available)?*/???? 0x0a,?0x03,?0x08,?/*????Usage?(Sensor?State:?No?Data?Sel)?*/???? 0x0a,?0x04,?0x08,?/*????Usage?(Sensor?State:?Initializing)?*/???? 0x0a,?0x05,?0x08,?/*????Usage?(Sensor?State:?Access?Denied)?*/???? 0x0a,?0x06,?0x08,?/*????Usage?(Sensor?State:?Error)?*/???? 0xb1,?0x00,?/*????Feature?(Data,Arr,Abs)?*/???? 0xc0,?/*???End?Collection
熱門產(chǎn)品 :
CH339: 7端口多功能USB HUB控制器芯片