这里我们需要定义两个描述符,例如可以定义如下:HID_REPORT_DESCRIPTOR DefaultReportDescriptor[] = { 0x06,0x00, 0xFF, // USAGE_PAGE (Vender Defined Usage Page) 0x09,0x01, // USAGE (Vendor Usage 0x01) 0xA1,0x01, // COLLECTION (Application) 0x85,CONTROL_FEATURE_REPO...
UP20=65280,Vendor Defined Page 1,vendor1.upg UP21=65281,Frank Device,frank.upg 增加frank.upg 文件,该 Usage Page 下有 Run/Skip/Stop 三个 Usage,内容如下: Frank Device NORMAL 00 Run 01 Skip 02 Stop 03-FFFF Reserved 注意frank.upg 中第一行的内容 Frank Device,一定要和 ini 文件中的一致。
HID_REPORT_DESCRIPTOR DefaultReportDescriptor[] = { 0x06,0x00, 0xFF, // USAGE_PAGE (Vender Defined Usage Page) 0x09,0x01, // USAGE (Vendor Usage 0x01) 0xA1,0x01, // COLLECTION (Application) 0x85,CONTROL_FEATURE_REPORT_ID, // REPORT_ID (1) 0x09,0x01, // USAGE (Vendor Usage ...
对于报告描述符,可以参考HID Usage Tables规范。HID Descriptor Tool工具可以帮助建立和测试编写的报告描述符。这里定义了一个输入和输出64字节数据的报告描述符。 code unsigned char szReport[] = { 0x06,0xA0,0xFF,//用法页(FFA0h, vendor defined) 0x09, 0x01,//用法(vendor defined) 0xA1, 0x01,//集...
0x06, 0x00, 0xff, // USAGE_PAGE (Vendor Defined) 0x09, 0xC5, // USAGE (Vendor Usage 0xC5) 0x15, 0x00, // LOGICAL_MINIMUM (0) 0x26, 0xff, 0x00, // LOGICAL_MAXIMUM (0xff) 0x75, 0x08, // REPORT_SIZE (8) 0x96, 0x00, 0x01, // REPORT_COUNT (0x100 (256 ...
These values consist of a Usage Page and an optional Usage Id, each of which are 16-bit hexadecimal values. Example DeviceCapabilities This section contains example DeviceCapabilities entries for three HID devices. The first two correspond to a vendor-defined usage on a HID device, the third t...
//UsagePage(Vendor-defined) 厂商自定义用法或功能(在UsagePage使用了“厂商自定义”之后,以下的Usage都为厂商自定义,这里我都写0xFF了,厂商能够自行区分就好。在使用了标准的UsagePage后,Usage才需要继续查表格去得到标准值)0x09,0xFF,//Usage 自定义0xA1,0xFF,//Collection(Vendor-defined) 厂商自定义集合0x...
The 256-bytes should be specified via a vendor-specific HID usage, in a vendor-defined usage page (Page 0xFF, Usage 0xC5) in the device certification status feature report.Before a device receives a 256-byte blob that indicates its certification status, it should implement a default ...
Usage(x)Usage(y) Usage(Vendordefined)ReportSize(8) ReportCount(16) Input(Data,Variable,Absolute) UsageMinimum和UsageMaximum可以指定一个Usage给多个掌握或是数组工程。将从Usage Minimum 到UsgaeMaximun定义的用法挨次对应到多个掌握中。 例如在一个键盘描述符中定义的标准键盘 的左、右修饰键的输入工程中,使用...
(64Byte)0x81,0x02,// INPUT (Data,Var,Abs)// The Output report0x09,0x04,// USAGE ID - Vendor defined0x15,0x00,// LOGICAL_MINIMUM (0)0x26,0x00,0xFF,// LOGICAL_MAXIMUM (255)0x75,0x08,// REPORT_SIZE (8bit)0x95,0x40,// REPORT_COUNT (64Byte)0x91,0x02,// OUTPUT (Data,...