最終更新:2015-06-27 (土) 07:20:07 (3188d)
HIDディスクリプタ
Top / HIDディスクリプタ
レポートディスクリプタとフィジカルディスクリプタ(オプション)をまとめる働き
USB
Byte フィールド名 説明 0 bLength? ディスクリプタの長さ(通常は0x09で固定) 1 bDescriptorType ディスクリプタのタイプ(0x21で固定) 2 bcdHID?[0] BCD表現のHIDバージョン(1.10なら0x0110) 3 bcdHID?[1] 4 bCountryCode? 地域固有デバイスのための国識別番号(必要がなければ0) 5 bNumDescriptors? 従属クラスディスクリプタの数(例えば1) 6 bDescriptorType クラスディスクリプタの種類 (レポートディスクリプタ:0x22、フィジカルディスクリプタ:0x23) 7 wDescriptorLength[0] クラスディスクリプタのサイズ 8 wDescriptorLength[1]
I2C
Byte フィールド名 説明 0 bLength? The length of the complete HID descriptor, in bytes. 2 bcdVersion? The version number, in binary coded decimal (BCD) format. 4 dwReportDescLength? The length of the Report descriptor, in bytes. 6 wReportDescRegister? The register index containing the Report descriptor. 8 wInputRegister? The register number to read the input report, in unsigned bytes. 10 wOutputRegister? The register number to send the output, in unsigned bytes. 12 wVendorID? USB-IF assigned Vendor ID. 14 wDeviceID? Device ID. 16 wRevisionID? Firmware version number
メモ
- クラスディスクリプタ数が複数ある場合、+6と+7の内容を、その数分繰り返すことになるが、その場合はbLength?も変更することになる。