最終更新:2015-06-23 (火) 17:45:00 (3227d)  

SET_REPORT
Top / SET_REPORT

HID クラスリクエストbRequest=0x09

仕様

  • The Set_Report request allows the host to send a report to the device, possibly setting the state of input, output, or feature controls.

注意点

  • A device might choose to ignore input Set_Report requests as meaningless.
  • Alternatively these reports could be used to reset the origin of a control (that is, current position should report zero).
  • The effect of sent reports will also depend on whether the recipient controls are absolute or relative.

HID

パケットの内容

  • オフセットフィールドサイズタイプ説明
    0bmRequestType1ビットマップ0x21リクエストの性質を表す
    1bRequest1Value0x09リクエストの種類。SET_REPORTは0x09。
    2wValue2ValueMSB:レポートの種類/LSB:レポートID
    4wIndex2Index or Offset送る先のUSB/インターフェイス番号
    6wLength2Countレポートの長さ

bmRequestType

  • リクエストの性質を表す
    ビット意味
    7データ転送方向0: ホストからデバイス
    1: デバイスからホスト
    6リクエストタイプ0: 標準リクエスト
    1: クラスリクエスト
    2: ベンダリクエスト?
    3: Reserved
    5
    4リクエストの対象0: デバイス
    1: インターフェイス
    2: エンドポイント
    3: Other
    4~31: Reserved
    3
    2
    1
    0

wValue

レポートのタイプ

関数

hid.dll

libusb

関連