const uint8_t hid_report_desc[] = { 0x06, 0x00, 0xFF,/* Usage Page (Vendor Defined 0xFF00)*/\ 0x09, 0x01,/* Usage (0x01)*/\ 0xA1, 0x01,/* Collection (Application)*/\ 0x09, 0x02,/* Usage (0x02)*/\ 0x15, 0x00,/* Logical Minimum (0)*/\ 0x26, 0xFF, 0x00,/* Logical Maximum (255)*/\ 0x75, 0x08,/* Report Size (8)*/\ 0x95, 0x40,/* Report Count (64)*/\ 0x81, 0x02,/* Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)*/\ 0x09, 0x03,/* Usage (0x03)*/\ 0x15, 0x00,/* Logical Minimum (0)*/\ 0x26, 0xFF, 0x00,/* Logical Maximum (255)*/\ 0x75, 0x08,/* Report Size (8)*/\ 0x95, 0x40,/* Report Count (64)*/\ 0x91, 0x02,/* Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)*/\ 0xC0,/* End Collection*/ };
void (*output_report)(const struct device *dev, const uint16_t len, const uint8_t *const buf);
int hid_device_submit_report(const struct device *dev, const uint16_t size, const uint8_t *const report)
06 00 01 00 1d 02 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 87us 102663.1.0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 54 c7 ..............................T. 102663.1.32
11 00 01 00 00 02 02 00 36 00 00 dc 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........6....................... 524us 102664.1.0 00 00 00 00 28 48 01 2f 00 00 00 00 d5 a0 0a 0e 14 98 01 2f 0b b0 0d 0e f8 c4 0a 0e 00 92 00 41 ....(H./.........../...........A 102664.1.32