Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
USB HID types and values

Macros

#define USB_DESC_HID   0x21
 
#define USB_DESC_HID_REPORT   0x22
 
#define USB_DESC_HID_PHYSICAL   0x23
 
#define USB_HID_GET_REPORT   0x01
 
#define USB_HID_GET_IDLE   0x02
 
#define USB_HID_GET_PROTOCOL   0x03
 
#define USB_HID_SET_REPORT   0x09
 
#define USB_HID_SET_IDLE   0x0A
 
#define USB_HID_SET_PROTOCOL   0x0B
 
#define HID_BOOT_IFACE_CODE_NONE   0
 
#define HID_BOOT_IFACE_CODE_KEYBOARD   1
 
#define HID_BOOT_IFACE_CODE_MOUSE   2
 
#define HID_PROTOCOL_BOOT   0
 
#define HID_PROTOCOL_REPORT   1
 
#define HID_ITEM_TYPE_MAIN   0x0
 
#define HID_ITEM_TYPE_GLOBAL   0x1
 
#define HID_ITEM_TYPE_LOCAL   0x2
 
#define HID_ITEM_TAG_INPUT   0x8
 
#define HID_ITEM_TAG_OUTPUT   0x9
 
#define HID_ITEM_TAG_COLLECTION   0xA
 
#define HID_ITEM_TAG_FEATURE   0xB
 
#define HID_ITEM_TAG_COLLECTION_END   0xC
 
#define HID_ITEM_TAG_USAGE_PAGE   0x0
 
#define HID_ITEM_TAG_LOGICAL_MIN   0x1
 
#define HID_ITEM_TAG_LOGICAL_MAX   0x2
 
#define HID_ITEM_TAG_PHYSICAL_MIN   0x3
 
#define HID_ITEM_TAG_PHYSICAL_MAX   0x4
 
#define HID_ITEM_TAG_UNIT_EXPONENT   0x5
 
#define HID_ITEM_TAG_UNIT   0x6
 
#define HID_ITEM_TAG_REPORT_SIZE   0x7
 
#define HID_ITEM_TAG_REPORT_ID   0x8
 
#define HID_ITEM_TAG_REPORT_COUNT   0x9
 
#define HID_ITEM_TAG_USAGE   0x0
 
#define HID_ITEM_TAG_USAGE_MIN   0x1
 
#define HID_ITEM_TAG_USAGE_MAX   0x2
 
#define HID_COLLECTION_PHYSICAL   0x00
 
#define HID_COLLECTION_APPLICATION   0x01
 
#define HID_USAGE_GEN_DESKTOP   0x01
 
#define HID_USAGE_GEN_KEYBOARD   0x07
 
#define HID_USAGE_GEN_LEDS   0x08
 
#define HID_USAGE_GEN_BUTTON   0x09
 
#define HID_USAGE_GEN_DESKTOP_UNDEFINED   0x00
 
#define HID_USAGE_GEN_DESKTOP_POINTER   0x01
 
#define HID_USAGE_GEN_DESKTOP_MOUSE   0x02
 
#define HID_USAGE_GEN_DESKTOP_JOYSTICK   0x04
 
#define HID_USAGE_GEN_DESKTOP_GAMEPAD   0x05
 
#define HID_USAGE_GEN_DESKTOP_KEYBOARD   0x06
 
#define HID_USAGE_GEN_DESKTOP_KEYPAD   0x07
 
#define HID_USAGE_GEN_DESKTOP_X   0x30
 
#define HID_USAGE_GEN_DESKTOP_Y   0x31
 
#define HID_USAGE_GEN_DESKTOP_WHEEL   0x38
 

Detailed Description

Macro Definition Documentation

◆ HID_BOOT_IFACE_CODE_KEYBOARD

#define HID_BOOT_IFACE_CODE_KEYBOARD   1

#include <include/usb/class/hid.h>

USB HID Boot Interface Protocol (bInterfaceProtocol) Code Keyboard

◆ HID_BOOT_IFACE_CODE_MOUSE

#define HID_BOOT_IFACE_CODE_MOUSE   2

#include <include/usb/class/hid.h>

USB HID Boot Interface Protocol (bInterfaceProtocol) Code Mouse

◆ HID_BOOT_IFACE_CODE_NONE

#define HID_BOOT_IFACE_CODE_NONE   0

#include <include/usb/class/hid.h>

USB HID Boot Interface Protocol (bInterfaceProtocol) Code None

◆ HID_COLLECTION_APPLICATION

#define HID_COLLECTION_APPLICATION   0x01

#include <include/usb/class/hid.h>

Application collection type

◆ HID_COLLECTION_PHYSICAL

#define HID_COLLECTION_PHYSICAL   0x00

#include <include/usb/class/hid.h>

Physical collection type

◆ HID_ITEM_TAG_COLLECTION

#define HID_ITEM_TAG_COLLECTION   0xA

#include <include/usb/class/hid.h>

HID Collection item tag

◆ HID_ITEM_TAG_COLLECTION_END

#define HID_ITEM_TAG_COLLECTION_END   0xC

#include <include/usb/class/hid.h>

HID End Collection item tag

◆ HID_ITEM_TAG_FEATURE

#define HID_ITEM_TAG_FEATURE   0xB

#include <include/usb/class/hid.h>

HID Feature item tag

◆ HID_ITEM_TAG_INPUT

#define HID_ITEM_TAG_INPUT   0x8

#include <include/usb/class/hid.h>

HID Input item tag

◆ HID_ITEM_TAG_LOGICAL_MAX

#define HID_ITEM_TAG_LOGICAL_MAX   0x2

#include <include/usb/class/hid.h>

HID Logical Maximum item tag

◆ HID_ITEM_TAG_LOGICAL_MIN

#define HID_ITEM_TAG_LOGICAL_MIN   0x1

#include <include/usb/class/hid.h>

HID Logical Minimum item tag

◆ HID_ITEM_TAG_OUTPUT

#define HID_ITEM_TAG_OUTPUT   0x9

#include <include/usb/class/hid.h>

HID Output item tag

◆ HID_ITEM_TAG_PHYSICAL_MAX

#define HID_ITEM_TAG_PHYSICAL_MAX   0x4

#include <include/usb/class/hid.h>

HID Physical Maximum item tag

◆ HID_ITEM_TAG_PHYSICAL_MIN

#define HID_ITEM_TAG_PHYSICAL_MIN   0x3

#include <include/usb/class/hid.h>

HID Physical Minimum item tag

◆ HID_ITEM_TAG_REPORT_COUNT

#define HID_ITEM_TAG_REPORT_COUNT   0x9

#include <include/usb/class/hid.h>

HID Report count item tag

◆ HID_ITEM_TAG_REPORT_ID

#define HID_ITEM_TAG_REPORT_ID   0x8

#include <include/usb/class/hid.h>

HID Report ID item tag

◆ HID_ITEM_TAG_REPORT_SIZE

#define HID_ITEM_TAG_REPORT_SIZE   0x7

#include <include/usb/class/hid.h>

HID Report Size item tag

◆ HID_ITEM_TAG_UNIT

#define HID_ITEM_TAG_UNIT   0x6

#include <include/usb/class/hid.h>

HID Unit item tag

◆ HID_ITEM_TAG_UNIT_EXPONENT

#define HID_ITEM_TAG_UNIT_EXPONENT   0x5

#include <include/usb/class/hid.h>

HID Unit Exponent item tag

◆ HID_ITEM_TAG_USAGE

#define HID_ITEM_TAG_USAGE   0x0

#include <include/usb/class/hid.h>

HID Usage item tag

◆ HID_ITEM_TAG_USAGE_MAX

#define HID_ITEM_TAG_USAGE_MAX   0x2

#include <include/usb/class/hid.h>

HID Usage Maximum item tag

◆ HID_ITEM_TAG_USAGE_MIN

#define HID_ITEM_TAG_USAGE_MIN   0x1

#include <include/usb/class/hid.h>

HID Usage Minimum item tag

◆ HID_ITEM_TAG_USAGE_PAGE

#define HID_ITEM_TAG_USAGE_PAGE   0x0

#include <include/usb/class/hid.h>

HID Usage Page item tag

◆ HID_ITEM_TYPE_GLOBAL

#define HID_ITEM_TYPE_GLOBAL   0x1

#include <include/usb/class/hid.h>

HID Global item type

◆ HID_ITEM_TYPE_LOCAL

#define HID_ITEM_TYPE_LOCAL   0x2

#include <include/usb/class/hid.h>

HID Local item type

◆ HID_ITEM_TYPE_MAIN

#define HID_ITEM_TYPE_MAIN   0x0

#include <include/usb/class/hid.h>

HID Main item type

◆ HID_PROTOCOL_BOOT

#define HID_PROTOCOL_BOOT   0

#include <include/usb/class/hid.h>

USB HID Class Boot protocol code

◆ HID_PROTOCOL_REPORT

#define HID_PROTOCOL_REPORT   1

#include <include/usb/class/hid.h>

USB HID Class Report protocol code

◆ HID_USAGE_GEN_BUTTON

#define HID_USAGE_GEN_BUTTON   0x09

#include <include/usb/class/hid.h>

HID Button Usage page

◆ HID_USAGE_GEN_DESKTOP

#define HID_USAGE_GEN_DESKTOP   0x01

#include <include/usb/class/hid.h>

HID Generic Desktop Controls Usage page

◆ HID_USAGE_GEN_DESKTOP_GAMEPAD

#define HID_USAGE_GEN_DESKTOP_GAMEPAD   0x05

#include <include/usb/class/hid.h>

HID Generic Desktop Gamepad Usage ID

◆ HID_USAGE_GEN_DESKTOP_JOYSTICK

#define HID_USAGE_GEN_DESKTOP_JOYSTICK   0x04

#include <include/usb/class/hid.h>

HID Generic Desktop Joystick Usage ID

◆ HID_USAGE_GEN_DESKTOP_KEYBOARD

#define HID_USAGE_GEN_DESKTOP_KEYBOARD   0x06

#include <include/usb/class/hid.h>

HID Generic Desktop Keyboard Usage ID

◆ HID_USAGE_GEN_DESKTOP_KEYPAD

#define HID_USAGE_GEN_DESKTOP_KEYPAD   0x07

#include <include/usb/class/hid.h>

HID Generic Desktop Keypad Usage ID

◆ HID_USAGE_GEN_DESKTOP_MOUSE

#define HID_USAGE_GEN_DESKTOP_MOUSE   0x02

#include <include/usb/class/hid.h>

HID Generic Desktop Mouse Usage ID

◆ HID_USAGE_GEN_DESKTOP_POINTER

#define HID_USAGE_GEN_DESKTOP_POINTER   0x01

#include <include/usb/class/hid.h>

HID Generic Desktop Pointer Usage ID

◆ HID_USAGE_GEN_DESKTOP_UNDEFINED

#define HID_USAGE_GEN_DESKTOP_UNDEFINED   0x00

#include <include/usb/class/hid.h>

HID Generic Desktop Undefined Usage ID

◆ HID_USAGE_GEN_DESKTOP_WHEEL

#define HID_USAGE_GEN_DESKTOP_WHEEL   0x38

#include <include/usb/class/hid.h>

HID Generic Desktop Wheel Usage ID

◆ HID_USAGE_GEN_DESKTOP_X

#define HID_USAGE_GEN_DESKTOP_X   0x30

#include <include/usb/class/hid.h>

HID Generic Desktop X Usage ID

◆ HID_USAGE_GEN_DESKTOP_Y

#define HID_USAGE_GEN_DESKTOP_Y   0x31

#include <include/usb/class/hid.h>

HID Generic Desktop Y Usage ID

◆ HID_USAGE_GEN_KEYBOARD

#define HID_USAGE_GEN_KEYBOARD   0x07

#include <include/usb/class/hid.h>

HID Keyboard Usage page

◆ HID_USAGE_GEN_LEDS

#define HID_USAGE_GEN_LEDS   0x08

#include <include/usb/class/hid.h>

HID LEDs Usage page

◆ USB_DESC_HID

#define USB_DESC_HID   0x21

#include <include/usb/class/hid.h>

USB HID Class HID descriptor type

◆ USB_DESC_HID_PHYSICAL

#define USB_DESC_HID_PHYSICAL   0x23

#include <include/usb/class/hid.h>

USB HID Class physical descriptor type

◆ USB_DESC_HID_REPORT

#define USB_DESC_HID_REPORT   0x22

#include <include/usb/class/hid.h>

USB HID Class Report descriptor type

◆ USB_HID_GET_IDLE

#define USB_HID_GET_IDLE   0x02

#include <include/usb/class/hid.h>

USB HID Class GetIdle bRequest value

◆ USB_HID_GET_PROTOCOL

#define USB_HID_GET_PROTOCOL   0x03

#include <include/usb/class/hid.h>

USB HID Class GetProtocol bRequest value

◆ USB_HID_GET_REPORT

#define USB_HID_GET_REPORT   0x01

#include <include/usb/class/hid.h>

USB HID Class GetReport bRequest value

◆ USB_HID_SET_IDLE

#define USB_HID_SET_IDLE   0x0A

#include <include/usb/class/hid.h>

USB HID Class SetIdle bRequest value

◆ USB_HID_SET_PROTOCOL

#define USB_HID_SET_PROTOCOL   0x0B

#include <include/usb/class/hid.h>

USB HID Class SetProtocol bRequest value

◆ USB_HID_SET_REPORT

#define USB_HID_SET_REPORT   0x09

#include <include/usb/class/hid.h>

USB HID Class SetReport bRequest value