HID 报表描述符电话实例
2020-09-23
950
0
内容来源于USB官方HID报告描述符工具自带的tele.hid
REPORT_COUNT (1) 95 01
USAGE_PAGE (Telephony Devices) 05 0B
USAGE (Phone) 09 01
COLLECTION (Application) A1 01
USAGE (Programmable Button) 09 07
COLLECTION (Logical) A1 02
USAGE_PAGE (Button) 05 09
USAGE_MINIMUM (Button 1) 19 01
USAGE_MAXIMUM (Button 6) 29 06
REPORT_SIZE (3) 75 03
LOGICAL_MINIMUM (1) 15 01
LOGICAL_MAXIMUM (6) 25 06
INPUT (Data,Ary,Abs) 81 00
END_COLLECTION C0
USAGE_PAGE (Telephony Devices) 05 0B
USAGE (Telephony Key Pad) 09 06
COLLECTION (Logical) A1 02
USAGE_PAGE (Button) 05 09
USAGE_MINIMUM (Button 1) 19 01
USAGE_MAXIMUM (Button 12) 29 0C
LOGICAL_MAXIMUM (12) 25 0C
REPORT_SIZE (4) 75 04
INPUT (Data,Ary,Abs) 81 00
END_COLLECTION C0
USAGE_PAGE (Telephony Devices) 05 0B
USAGE (Hook Switch) 09 20
USAGE (Alternate Function) 09 29
USAGE (Conference) 09 2C
USAGE (Transfer) 09 25
USAGE (Drop) 09 26
USAGE (Hold) 09 23
USAGE (Speaker Phone) 09 2B
LOGICAL_MAXIMUM (7) 25 07
REPORT_SIZE (3) 75 03
INPUT (Data,Ary,Abs) 81 00
USAGE_PAGE (Consumer Devices) 05 0C
USAGE (Volume) 09 E0
LOGICAL_MINIMUM (-1) 15 FF
LOGICAL_MAXIMUM (1) 25 01
REPORT_SIZE (2) 75 02
INPUT (Data,Var,Abs) 81 02
REPORT_SIZE (4) 75 04
INPUT (Cnst,Var,Abs) 81 03
LOGICAL_MINIMUM (0) 15 00
LOGICAL_MAXIMUM (1) 25 01
USAGE_PAGE (LEDs) 05 08
USAGE (Usage Selected Indicator) 09 3A
COLLECTION (Logical) A1 02
USAGE_PAGE (Telephony Devices) 05 0B
USAGE (Programmable Button) 09 07
COLLECTION (Logical) A1 02
USAGE_PAGE (Button) 05 09
USAGE_MINIMUM (Button 1) 19 01
USAGE_MAXIMUM (Button 2) 29 02
REPORT_COUNT (2) 95 02
OUTPUT (Data,Var,Abs) 91 02
END_COLLECTION C0
END_COLLECTION C0
USAGE_PAGE (LEDs) 05 08
USAGE (Usage In Use Indicator) 09 3B
COLLECTION (Logical) A1 02
USAGE_PAGE (Telephony Devices) 05 0B
USAGE (Programmable Button) 09 07
COLLECTION (Logical) A1 02
USAGE_PAGE (Button) 05 09
USAGE_MINIMUM (Undefined) 19 01
USAGE_MAXIMUM (Undefined) 29 06
REPORT_COUNT (6) 95 06
OUTPUT (Data,Var,Abs) 91 02
END_COLLECTION C0
USAGE_PAGE (Telephony Devices) 05 0B
USAGE (Alternate Function) 09 29
REPORT_COUNT (1) 95 01
OUTPUT (Data,Var,Abs) 91 02
END_COLLECTION C0
USAGE_PAGE (LEDs) 05 08
USAGE (Usage Multi Mode Indicator) 09 3C
COLLECTION (Logical) A1 02
USAGE_PAGE (Telephony Devices) 05 0B
USAGE (Message) 09 73
COLLECTION (Logical) A1 02
USAGE_PAGE (LEDs) 05 08
USAGE (Indicator On) 09 3D
USAGE (Indicator Fast Blink) 09 40
USAGE (Indicator Off) 09 41
REPORT_SIZE (2) 75 02
OUTPUT (Data,Ary,Abs) 91 00
END_COLLECTION C0
END_COLLECTION C0
REPORT_SIZE (5) 75 05
INPUT (Cnst,Var,Abs) 81 03
END_COLLECTION C0
转成数组内容如下:
char ReportDescriptor[175] = {
0x95, 0x01, // REPORT_COUNT (1)
0x05, 0x0b, // USAGE_PAGE (Telephony Devices)
0x09, 0x01, // USAGE (Phone)
0xa1, 0x01, // COLLECTION (Application)
0x09, 0x07, // USAGE (Programmable Button)
0xa1, 0x02, // COLLECTION (Logical)
0x05, 0x09, // USAGE_PAGE (Button)
0x19, 0x01, // USAGE_MINIMUM (Button 1)
0x29, 0x06, // USAGE_MAXIMUM (Button 6)
0x75, 0x03, // REPORT_SIZE (3)
0x15, 0x01, // LOGICAL_MINIMUM (1)
0x25, 0x06, // LOGICAL_MAXIMUM (6)
0x81, 0x00, // INPUT (Data,Ary,Abs)
0xc0, // END_COLLECTION
0x05, 0x0b, // USAGE_PAGE (Telephony Devices)
0x09, 0x06, // USAGE (Telephony Key Pad)
0xa1, 0x02, // COLLECTION (Logical)
0x05, 0x09, // USAGE_PAGE (Button)
0x19, 0x01, // USAGE_MINIMUM (Button 1)
0x29, 0x0c, // USAGE_MAXIMUM (Button 12)
0x25, 0x0c, // LOGICAL_MAXIMUM (12)
0x75, 0x04, // REPORT_SIZE (4)
0x81, 0x00, // INPUT (Data,Ary,Abs)
0xc0, // END_COLLECTION
0x05, 0x0b, // USAGE_PAGE (Telephony Devices)
0x09, 0x20, // USAGE (Hook Switch)
0x09, 0x29, // USAGE (Alternate Function)
0x09, 0x2c, // USAGE (Conference)
0x09, 0x25, // USAGE (Transfer)
0x09, 0x26, // USAGE (Drop)
0x09, 0x23, // USAGE (Hold)
0x09, 0x2b, // USAGE (Speaker Phone)
0x25, 0x07, // LOGICAL_MAXIMUM (7)
0x75, 0x03, // REPORT_SIZE (3)
0x81, 0x00, // INPUT (Data,Ary,Abs)
0x05, 0x0c, // USAGE_PAGE (Consumer Devices)
0x09, 0xe0, // USAGE (Volume)
0x15, 0xff, // LOGICAL_MINIMUM (-1)
0x25, 0x01, // LOGICAL_MAXIMUM (1)
0x75, 0x02, // REPORT_SIZE (2)
0x81, 0x02, // INPUT (Data,Var,Abs)
0x75, 0x04, // REPORT_SIZE (4)
0x81, 0x03, // INPUT (Cnst,Var,Abs)
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x25, 0x01, // LOGICAL_MAXIMUM (1)
0x05, 0x08, // USAGE_PAGE (LEDs)
0x09, 0x3a, // USAGE (Usage Selected Indicator)
0xa1, 0x02, // COLLECTION (Logical)
0x05, 0x0b, // USAGE_PAGE (Telephony Devices)
0x09, 0x07, // USAGE (Programmable Button)
0xa1, 0x02, // COLLECTION (Logical)
0x05, 0x09, // USAGE_PAGE (Button)
0x19, 0x01, // USAGE_MINIMUM (Button 1)
0x29, 0x02, // USAGE_MAXIMUM (Button 2)
0x95, 0x02, // REPORT_COUNT (2)
0x91, 0x02, // OUTPUT (Data,Var,Abs)
0xc0, // END_COLLECTION
0xc0, // END_COLLECTION
0x05, 0x08, // USAGE_PAGE (LEDs)
0x09, 0x3b, // USAGE (Usage In Use Indicator)
0xa1, 0x02, // COLLECTION (Logical)
0x05, 0x0b, // USAGE_PAGE (Telephony Devices)
0x09, 0x07, // USAGE (Programmable Button)
0xa1, 0x02, // COLLECTION (Logical)
0x05, 0x09, // USAGE_PAGE (Button)
0x19, 0x01, // USAGE_MINIMUM (Undefined)
0x29, 0x06, // USAGE_MAXIMUM (Undefined)
0x95, 0x06, // REPORT_COUNT (6)
0x91, 0x02, // OUTPUT (Data,Var,Abs)
0xc0, // END_COLLECTION
0x05, 0x0b, // USAGE_PAGE (Telephony Devices)
0x09, 0x29, // USAGE (Alternate Function)
0x95, 0x01, // REPORT_COUNT (1)
0x91, 0x02, // OUTPUT (Data,Var,Abs)
0xc0, // END_COLLECTION
0x05, 0x08, // USAGE_PAGE (LEDs)
0x09, 0x3c, // USAGE (Usage Multi Mode Indicator)
0xa1, 0x02, // COLLECTION (Logical)
0x05, 0x0b, // USAGE_PAGE (Telephony Devices)
0x09, 0x73, // USAGE (Message)
0xa1, 0x02, // COLLECTION (Logical)
0x05, 0x08, // USAGE_PAGE (LEDs)
0x09, 0x3d, // USAGE (Indicator On)
0x09, 0x40, // USAGE (Indicator Fast Blink)
0x09, 0x41, // USAGE (Indicator Off)
0x75, 0x02, // REPORT_SIZE (2)
0x91, 0x00, // OUTPUT (Data,Ary,Abs)
0xc0, // END_COLLECTION
0xc0, // END_COLLECTION
0x75, 0x05, // REPORT_SIZE (5)
0x81, 0x03, // INPUT (Cnst,Var,Abs)
0xc0 // END_COLLECTION
};
HID人机交互QQ群:564808376
UAC音频QQ群:218581009
UVC相机QQ群:331552032
BOT&UASP大容量存储QQ群:258159197
STC-USB单片机QQ群:315457461
USB技术交流QQ群2:580684376
USB技术交流QQ群:952873936