XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs
usbhid.h File Reference
#include "uspi/macros.h"
Include dependency graph for usbhid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TUSBHIDDescriptor
 

Macros

#define GET_REPORT   0x01
 
#define GET_IDLE   0x02
 
#define GET_PROTOCOL   0x03
 
#define SET_REPORT   0x09
 
#define SET_IDLE   0x0A
 
#define SET_PROTOCOL   0x0B
 
#define DESCRIPTOR_HID   0x21
 
#define DESCRIPTOR_REPORT   0x22
 
#define BOOT_PROTOCOL   0x00
 
#define REPORT_PROTOCOL   0x01
 
#define REPORT_TYPE_INPUT   0x01
 
#define REPORT_TYPE_OUTPUT   0x02
 
#define REPORT_TYPE_FEATURE   0x03
 
#define LCTRL   (1 << 0)
 
#define LSHIFT   (1 << 1)
 
#define ALT   (1 << 2)
 
#define LWIN   (1 << 3)
 
#define RCTRL   (1 << 4)
 
#define RSHIFT   (1 << 5)
 
#define ALTGR   (1 << 6)
 
#define RWIN   (1 << 7)
 
#define LED_NUM_LOCK   (1 << 0)
 
#define LED_CAPS_LOCK   (1 << 1)
 
#define LED_SCROLL_LOCK   (1 << 2)
 
#define USBHID_BUTTON1   (1 << 0)
 
#define USBHID_BUTTON2   (1 << 1)
 
#define USBHID_BUTTON3   (1 << 2)
 

Typedefs

typedef struct TUSBHIDDescriptor TUSBHIDDescriptor
 

Macro Definition Documentation

◆ ALT

#define ALT   (1 << 2)

◆ ALTGR

#define ALTGR   (1 << 6)

◆ BOOT_PROTOCOL

#define BOOT_PROTOCOL   0x00

◆ DESCRIPTOR_HID

#define DESCRIPTOR_HID   0x21

◆ DESCRIPTOR_REPORT

#define DESCRIPTOR_REPORT   0x22

◆ GET_IDLE

#define GET_IDLE   0x02

◆ GET_PROTOCOL

#define GET_PROTOCOL   0x03

◆ GET_REPORT

#define GET_REPORT   0x01

◆ LCTRL

#define LCTRL   (1 << 0)

◆ LED_CAPS_LOCK

#define LED_CAPS_LOCK   (1 << 1)

◆ LED_NUM_LOCK

#define LED_NUM_LOCK   (1 << 0)

◆ LED_SCROLL_LOCK

#define LED_SCROLL_LOCK   (1 << 2)

◆ LSHIFT

#define LSHIFT   (1 << 1)

◆ LWIN

#define LWIN   (1 << 3)

◆ RCTRL

#define RCTRL   (1 << 4)

◆ REPORT_PROTOCOL

#define REPORT_PROTOCOL   0x01

◆ REPORT_TYPE_FEATURE

#define REPORT_TYPE_FEATURE   0x03

◆ REPORT_TYPE_INPUT

#define REPORT_TYPE_INPUT   0x01

◆ REPORT_TYPE_OUTPUT

#define REPORT_TYPE_OUTPUT   0x02

◆ RSHIFT

#define RSHIFT   (1 << 5)

◆ RWIN

#define RWIN   (1 << 7)

◆ SET_IDLE

#define SET_IDLE   0x0A

◆ SET_PROTOCOL

#define SET_PROTOCOL   0x0B

◆ SET_REPORT

#define SET_REPORT   0x09

◆ USBHID_BUTTON1

#define USBHID_BUTTON1   (1 << 0)

◆ USBHID_BUTTON2

#define USBHID_BUTTON2   (1 << 1)

◆ USBHID_BUTTON3

#define USBHID_BUTTON3   (1 << 2)

Typedef Documentation

◆ TUSBHIDDescriptor