The latest development version of this page may be more current than this released 1.14.0 version.
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 if’s and menus.)

Kconfig definition

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

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:28subsys/usb/Kconfig:102subsys/usb/class/Kconfig:129

Menu path: (top menu) → USB device stack

config USB_HID_PROTOCOL_CODE
    int
    prompt "HID protocol code" if USB_HID_BOOT_PROTOCOL && USB_DEVICE_HID && USB_DEVICE_STACK
    range 0 2 if USB_HID_BOOT_PROTOCOL && USB_DEVICE_HID && USB_DEVICE_STACK
    default 0 if USB_HID_BOOT_PROTOCOL && USB_DEVICE_HID && USB_DEVICE_STACK
    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.

(Definitions include propagated dependencies, including from if’s and menus.)