CONFIG_USB_HID_PROTOCOL_CODE

HID protocol code

Type: int

Help

Sets bIntefaceProtocol in HID instance. 0 = None 1 = Keyboard 2 = Mouse See Chapter 4.3 of Device Class Definition for Human Interface Devices 1.11 for more information.

Direct dependencies

USB_HID_BOOT_PROTOCOL && USB_DEVICE_HID && USB_DEVICE_STACK

(Includes any dependencies from ifs and menus.)

Default

  • 0

Kconfig definition

At subsys/usb/class/hid/Kconfig:64

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:26subsys/usb/Kconfig:132subsys/usb/class/Kconfig:124

Menu path: (Top) → USB device stack → USB Human Interface Device support → Enable USB HID Boot Protocol handling

config USB_HID_PROTOCOL_CODE
    int "HID protocol code"
    range 0 2
    default 0
    depends on USB_HID_BOOT_PROTOCOL && USB_DEVICE_HID && USB_DEVICE_STACK
    help
      Sets bIntefaceProtocol in HID instance.
      0 = None
      1 = Keyboard
      2 = Mouse
      See Chapter 4.3 of Device Class Definition for Human Interface Devices 1.11
      for more information.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)