Classes | Macros
Référence du fichier hidboot.h
#include <stdint.h>
#include "Usb.h"
#include "hid.h"
#include "Arduino.h"

Classes

struct  MOUSEINFO
 
class  MouseReportParser
 
struct  MODIFIERKEYS
 
struct  KBDINFO
 
struct  KBDLEDS
 
class  KeyboardReportParser
 
class  HIDBoot< BOOT_PROTOCOL >
 

Macros

#define UHS_HID_BOOT_KEY_ZERO   0x27
 
#define UHS_HID_BOOT_KEY_ENTER   0x28
 
#define UHS_HID_BOOT_KEY_ESCAPE   0x29
 
#define UHS_HID_BOOT_KEY_DELETE   0x2a
 
#define UHS_HID_BOOT_KEY_DELETE_FORWARD   0x4C
 
#define UHS_HID_BOOT_KEY_TAB   0x2b
 
#define UHS_HID_BOOT_KEY_SPACE   0x2c
 
#define UHS_HID_BOOT_KEY_CAPS_LOCK   0x39
 
#define UHS_HID_BOOT_KEY_SCROLL_LOCK   0x47
 
#define UHS_HID_BOOT_KEY_NUM_LOCK   0x53
 
#define UHS_HID_BOOT_KEY_ZERO2   0x62
 
#define UHS_HID_BOOT_KEY_PERIOD   0x63
 
#define bitsEndpoints(p)   ((((p) & HID_PROTOCOL_KEYBOARD)? 2 : 0) | (((p) & HID_PROTOCOL_MOUSE)? 1 : 0))
 
#define totalEndpoints(p)   ((bitsEndpoints(p) == 3) ? 3 : 2)
 
#define epMUL(p)   ((((p) & HID_PROTOCOL_KEYBOARD)? 1 : 0) + (((p) & HID_PROTOCOL_MOUSE)? 1 : 0))
 

Documentation des macros

◆ bitsEndpoints

#define bitsEndpoints (   p)    ((((p) & HID_PROTOCOL_KEYBOARD)? 2 : 0) | (((p) & HID_PROTOCOL_MOUSE)? 1 : 0))

◆ epMUL

#define epMUL (   p)    ((((p) & HID_PROTOCOL_KEYBOARD)? 1 : 0) + (((p) & HID_PROTOCOL_MOUSE)? 1 : 0))

◆ totalEndpoints

#define totalEndpoints (   p)    ((bitsEndpoints(p) == 3) ? 3 : 2)

◆ UHS_HID_BOOT_KEY_CAPS_LOCK

#define UHS_HID_BOOT_KEY_CAPS_LOCK   0x39

◆ UHS_HID_BOOT_KEY_DELETE

#define UHS_HID_BOOT_KEY_DELETE   0x2a

◆ UHS_HID_BOOT_KEY_DELETE_FORWARD

#define UHS_HID_BOOT_KEY_DELETE_FORWARD   0x4C

◆ UHS_HID_BOOT_KEY_ENTER

#define UHS_HID_BOOT_KEY_ENTER   0x28

◆ UHS_HID_BOOT_KEY_ESCAPE

#define UHS_HID_BOOT_KEY_ESCAPE   0x29

◆ UHS_HID_BOOT_KEY_NUM_LOCK

#define UHS_HID_BOOT_KEY_NUM_LOCK   0x53

◆ UHS_HID_BOOT_KEY_PERIOD

#define UHS_HID_BOOT_KEY_PERIOD   0x63

◆ UHS_HID_BOOT_KEY_SCROLL_LOCK

#define UHS_HID_BOOT_KEY_SCROLL_LOCK   0x47

◆ UHS_HID_BOOT_KEY_SPACE

#define UHS_HID_BOOT_KEY_SPACE   0x2c

◆ UHS_HID_BOOT_KEY_TAB

#define UHS_HID_BOOT_KEY_TAB   0x2b

◆ UHS_HID_BOOT_KEY_ZERO

#define UHS_HID_BOOT_KEY_ZERO   0x27

◆ UHS_HID_BOOT_KEY_ZERO2

#define UHS_HID_BOOT_KEY_ZERO2   0x62