请问 CH549 USB HID feature report 的发送和接收如何实现,能否提供代码以供参考。
使用的部分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
热门产品 :
CH32X035: 32位USB+USB PD单片机