From cafdd8c93da83f6f4c0bb987ec9764b112ce7293 Mon Sep 17 00:00:00 2001 From: mbanth Date: Thu, 27 May 2021 16:07:10 +0100 Subject: [PATCH] Provide a HID Report descriptor definition for legacy tests --- .../hid_report_descriptor.h | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 legacy_tests/app_test_i2s_loopback/hid_report_descriptor.h diff --git a/legacy_tests/app_test_i2s_loopback/hid_report_descriptor.h b/legacy_tests/app_test_i2s_loopback/hid_report_descriptor.h new file mode 100644 index 00000000..75a77f06 --- /dev/null +++ b/legacy_tests/app_test_i2s_loopback/hid_report_descriptor.h @@ -0,0 +1,22 @@ +// Copyright 2021 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. +unsigned char hidReportDescriptor[] = +{ + 0x05, 0x0c, /* Usage Page (Consumer Device) */ + 0x09, 0x01, /* Usage (Consumer Control) */ + 0xa1, 0x01, /* Collection (Application) */ + 0x15, 0x00, /* Logical Minimum (0) */ + 0x25, 0x01, /* Logical Maximum (1) */ + 0x09, 0xb0, /* Usage (Play) */ + 0x09, 0xb5, /* Usage (Scan Next Track) */ + 0x09, 0xb6, /* Usage (Scan Previous Track) */ + 0x09, 0xe9, /* Usage (Volume Up) */ + 0x09, 0xea, /* Usage (Volume Down) */ + 0x09, 0xe2, /* Usage (Mute) */ + 0x75, 0x01, /* Report Size (1) */ + 0x95, 0x06, /* Report Count (6) */ + 0x81, 0x02, /* Input (Data, Var, Abs) */ + 0x95, 0x02, /* Report Count (2) */ + 0x81, 0x01, /* Input (Cnst, Ary, Abs) */ + 0xc0 /* End collection */ +};