Kaleidoscope
Macros
DescriptorPrimitives.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define D_MULTIBYTE(n)   (n + 0x01)
 
#define D_USAGE_PAGE   0x05
 
#define D_USAGE   0x09
 
#define D_REPORT_ID   0x85
 
#define D_USAGE_MINIMUM   0x19
 
#define D_USAGE_MAXIMUM   0x29
 
#define D_LOGICAL_MINIMUM   0x15
 
#define D_LOGICAL_MAXIMUM   0x25
 
#define D_REPORT_SIZE   0x75
 
#define D_REPORT_COUNT   0x95
 
#define D_INPUT   0x81
 
#define D_OUTPUT   0x91
 
#define D_FEATURE   0xb1
 
#define D_COLLECTION   0xa1
 
#define D_END_COLLECTION   0xc0
 
#define D_DATA   0b00000000
 
#define D_CONSTANT   0b00000001
 
#define D_ARRAY   0b00000000
 
#define D_VARIABLE   0b00000010
 
#define D_ABSOLUTE   0b00000000
 
#define D_RELATIVE   0b00000100
 
#define D_NO_WRAP   0b00000000
 
#define D_WRAP   0b00001000
 
#define D_LINEAR   0b00000000
 
#define D_NON_LINEAR   0b00010000
 
#define D_PREFERRED_STATE   0b00000000
 
#define D_NO_PREFERRED   0b00100000
 
#define D_NO_NULL_POSITION   0b00000000
 
#define D_NULL_STATE   0b01000000
 
#define D_NON_VOLATILE   0b00000000
 
#define D_VOLATILE   0b01000000
 
#define D_BIT_FIELD   0b00000000
 
#define D_BUFFERED_BYTES   0b10000000
 
#define D_PHYSICAL   0x00
 
#define D_APPLICATION   0x01
 
#define D_LOGICAL   0x02
 
#define D_REPORT   0x03
 
#define D_NAMED_ARRAY   0x04
 
#define D_USAGE_SWITCH   0x05
 
#define D_USAGE_MODIFIER   0x06
 
#define D_PAGE_GENERIC_DESKTOP   0x01
 
#define D_PAGE_SIMULATION   0x02
 
#define D_PAGE_VR   0x03
 
#define D_PAGE_SPORT   0x04
 
#define D_PAGE_GAME   0x05
 
#define D_PAGE_GENERIC_DEVICE   0x06
 
#define D_PAGE_KEYBOARD   0x07
 
#define D_PAGE_LEDS   0x08
 
#define D_PAGE_BUTTON   0x09
 
#define D_PAGE_ORDINAL   0x0A
 
#define D_PAGE_TELEPHONY   0x0B
 
#define D_PAGE_CONSUMER   0x0C
 
#define D_PAGE_DIGITIZER   0x0D
 
#define D_PAGE_RESERVED   0x0E
 
#define D_PAGE_PID   0x0F
 
#define D_PAGE_UNICODE   0x10
 
#define D_PAGE_ALPHANUMERIC_DISPLAY   0x14
 
#define D_PAGE_MEDICAL_INSTRUMENTS   0x40
 
#define D_PAGE_BAR_CODE_SCANNER   0x8C
 
#define D_PAGE_SCALE   0x8D
 
#define D_PAGE_MSR   0x8E
 
#define D_PAGE_CAMERA_CONTROL   0x90
 
#define D_PAGE_ARCADE   0x91
 
#define D_USAGE_POINTER   0x01
 
#define D_USAGE_MOUSE   0x02
 
#define D_USAGE_JOYSTICK   0x04
 
#define D_USAGE_GAMEPAD   0x05
 
#define D_USAGE_KEYBOARD   0x06
 
#define D_USAGE_KEYPAD   0x07
 
#define D_USAGE_MULITAXIS   0x08
 

Macro Definition Documentation

◆ D_ABSOLUTE

#define D_ABSOLUTE   0b00000000

◆ D_APPLICATION

#define D_APPLICATION   0x01

◆ D_ARRAY

#define D_ARRAY   0b00000000

◆ D_BIT_FIELD

#define D_BIT_FIELD   0b00000000

◆ D_BUFFERED_BYTES

#define D_BUFFERED_BYTES   0b10000000

◆ D_COLLECTION

#define D_COLLECTION   0xa1

◆ D_CONSTANT

#define D_CONSTANT   0b00000001

◆ D_DATA

#define D_DATA   0b00000000

◆ D_END_COLLECTION

#define D_END_COLLECTION   0xc0

◆ D_FEATURE

#define D_FEATURE   0xb1

◆ D_INPUT

#define D_INPUT   0x81

◆ D_LINEAR

#define D_LINEAR   0b00000000

◆ D_LOGICAL

#define D_LOGICAL   0x02

◆ D_LOGICAL_MAXIMUM

#define D_LOGICAL_MAXIMUM   0x25

◆ D_LOGICAL_MINIMUM

#define D_LOGICAL_MINIMUM   0x15

◆ D_MULTIBYTE

#define D_MULTIBYTE (   n)    (n + 0x01)

◆ D_NAMED_ARRAY

#define D_NAMED_ARRAY   0x04

◆ D_NO_NULL_POSITION

#define D_NO_NULL_POSITION   0b00000000

◆ D_NO_PREFERRED

#define D_NO_PREFERRED   0b00100000

◆ D_NO_WRAP

#define D_NO_WRAP   0b00000000

◆ D_NON_LINEAR

#define D_NON_LINEAR   0b00010000

◆ D_NON_VOLATILE

#define D_NON_VOLATILE   0b00000000

◆ D_NULL_STATE

#define D_NULL_STATE   0b01000000

◆ D_OUTPUT

#define D_OUTPUT   0x91

◆ D_PAGE_ALPHANUMERIC_DISPLAY

#define D_PAGE_ALPHANUMERIC_DISPLAY   0x14

◆ D_PAGE_ARCADE

#define D_PAGE_ARCADE   0x91

◆ D_PAGE_BAR_CODE_SCANNER

#define D_PAGE_BAR_CODE_SCANNER   0x8C

◆ D_PAGE_BUTTON

#define D_PAGE_BUTTON   0x09

◆ D_PAGE_CAMERA_CONTROL

#define D_PAGE_CAMERA_CONTROL   0x90

◆ D_PAGE_CONSUMER

#define D_PAGE_CONSUMER   0x0C

◆ D_PAGE_DIGITIZER

#define D_PAGE_DIGITIZER   0x0D

◆ D_PAGE_GAME

#define D_PAGE_GAME   0x05

◆ D_PAGE_GENERIC_DESKTOP

#define D_PAGE_GENERIC_DESKTOP   0x01

◆ D_PAGE_GENERIC_DEVICE

#define D_PAGE_GENERIC_DEVICE   0x06

◆ D_PAGE_KEYBOARD

#define D_PAGE_KEYBOARD   0x07

◆ D_PAGE_LEDS

#define D_PAGE_LEDS   0x08

◆ D_PAGE_MEDICAL_INSTRUMENTS

#define D_PAGE_MEDICAL_INSTRUMENTS   0x40

◆ D_PAGE_MSR

#define D_PAGE_MSR   0x8E

◆ D_PAGE_ORDINAL

#define D_PAGE_ORDINAL   0x0A

◆ D_PAGE_PID

#define D_PAGE_PID   0x0F

◆ D_PAGE_RESERVED

#define D_PAGE_RESERVED   0x0E

◆ D_PAGE_SCALE

#define D_PAGE_SCALE   0x8D

◆ D_PAGE_SIMULATION

#define D_PAGE_SIMULATION   0x02

◆ D_PAGE_SPORT

#define D_PAGE_SPORT   0x04

◆ D_PAGE_TELEPHONY

#define D_PAGE_TELEPHONY   0x0B

◆ D_PAGE_UNICODE

#define D_PAGE_UNICODE   0x10

◆ D_PAGE_VR

#define D_PAGE_VR   0x03

◆ D_PHYSICAL

#define D_PHYSICAL   0x00

◆ D_PREFERRED_STATE

#define D_PREFERRED_STATE   0b00000000

◆ D_RELATIVE

#define D_RELATIVE   0b00000100

◆ D_REPORT

#define D_REPORT   0x03

◆ D_REPORT_COUNT

#define D_REPORT_COUNT   0x95

◆ D_REPORT_ID

#define D_REPORT_ID   0x85

◆ D_REPORT_SIZE

#define D_REPORT_SIZE   0x75

◆ D_USAGE

#define D_USAGE   0x09

◆ D_USAGE_GAMEPAD

#define D_USAGE_GAMEPAD   0x05

◆ D_USAGE_JOYSTICK

#define D_USAGE_JOYSTICK   0x04

◆ D_USAGE_KEYBOARD

#define D_USAGE_KEYBOARD   0x06

◆ D_USAGE_KEYPAD

#define D_USAGE_KEYPAD   0x07

◆ D_USAGE_MAXIMUM

#define D_USAGE_MAXIMUM   0x29

◆ D_USAGE_MINIMUM

#define D_USAGE_MINIMUM   0x19

◆ D_USAGE_MODIFIER

#define D_USAGE_MODIFIER   0x06

◆ D_USAGE_MOUSE

#define D_USAGE_MOUSE   0x02

◆ D_USAGE_MULITAXIS

#define D_USAGE_MULITAXIS   0x08

◆ D_USAGE_PAGE

#define D_USAGE_PAGE   0x05

◆ D_USAGE_POINTER

#define D_USAGE_POINTER   0x01

◆ D_USAGE_SWITCH

#define D_USAGE_SWITCH   0x05

◆ D_VARIABLE

#define D_VARIABLE   0b00000010

◆ D_VOLATILE

#define D_VOLATILE   0b01000000

◆ D_WRAP

#define D_WRAP   0b00001000