USB Host Shield 2.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KeyboardReportParser Class Reference

#include <hidboot.h>

Inheritance diagram for KeyboardReportParser:
Inheritance graph
[legend]
Collaboration diagram for KeyboardReportParser:
Collaboration graph
[legend]

Public Member Functions

 KeyboardReportParser ()
 
void Parse (USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
 

Protected Member Functions

uint8_t OemToAscii (uint8_t mod, uint8_t key)
 
virtual uint8_t HandleLockingKeys (USBHID *hid, uint8_t key)
 
virtual void OnControlKeysChanged (uint8_t before, uint8_t after)
 
virtual void OnKeyDown (uint8_t mod, uint8_t key)
 
virtual void OnKeyUp (uint8_t mod, uint8_t key)
 
virtual const uint8_t * getNumKeys ()
 
virtual const uint8_t * getSymKeysUp ()
 
virtual const uint8_t * getSymKeysLo ()
 
virtual const uint8_t * getPadKeys ()
 

Protected Attributes

union {
   KBDINFO   kbdInfo
 
   uint8_t   bInfo [sizeof(KBDINFO)]
 
prevState
 
union {
   KBDLEDS   kbdLeds
 
   uint8_t   bLeds
 
kbdLockingKeys
 

Detailed Description

Definition at line 121 of file hidboot.h.

Constructor & Destructor Documentation

◆ KeyboardReportParser()

KeyboardReportParser::KeyboardReportParser ( )
inline

Definition at line 143 of file hidboot.h.

Member Function Documentation

◆ OemToAscii()

uint8_t KeyboardReportParser::OemToAscii ( uint8_t  mod,
uint8_t  key 
)
protected

Definition at line 165 of file hidboot.cpp.

◆ Parse()

void KeyboardReportParser::Parse ( USBHID hid,
bool  is_rpt_id,
uint8_t  len,
uint8_t *  buf 
)
virtual

Implements HIDReportParser.

Definition at line 127 of file hidboot.cpp.

◆ HandleLockingKeys()

virtual uint8_t KeyboardReportParser::HandleLockingKeys ( USBHID hid,
uint8_t  key 
)
inlineprotectedvirtual

Definition at line 151 of file hidboot.h.

◆ OnControlKeysChanged()

virtual void KeyboardReportParser::OnControlKeysChanged ( uint8_t  before,
uint8_t  after 
)
inlineprotectedvirtual

Definition at line 174 of file hidboot.h.

◆ OnKeyDown()

virtual void KeyboardReportParser::OnKeyDown ( uint8_t  mod,
uint8_t  key 
)
inlineprotectedvirtual

Definition at line 177 of file hidboot.h.

◆ OnKeyUp()

virtual void KeyboardReportParser::OnKeyUp ( uint8_t  mod,
uint8_t  key 
)
inlineprotectedvirtual

Definition at line 180 of file hidboot.h.

◆ getNumKeys()

virtual const uint8_t* KeyboardReportParser::getNumKeys ( )
inlineprotectedvirtual

Definition at line 183 of file hidboot.h.

◆ getSymKeysUp()

virtual const uint8_t* KeyboardReportParser::getSymKeysUp ( )
inlineprotectedvirtual

Definition at line 187 of file hidboot.h.

◆ getSymKeysLo()

virtual const uint8_t* KeyboardReportParser::getSymKeysLo ( )
inlineprotectedvirtual

Definition at line 191 of file hidboot.h.

◆ getPadKeys()

virtual const uint8_t* KeyboardReportParser::getPadKeys ( )
inlineprotectedvirtual

Definition at line 195 of file hidboot.h.

Member Data Documentation

◆ kbdInfo

KBDINFO KeyboardReportParser::kbdInfo

Definition at line 130 of file hidboot.h.

◆ bInfo

uint8_t KeyboardReportParser::bInfo[sizeof(KBDINFO)]

Definition at line 131 of file hidboot.h.

◆ prevState

union { ... } KeyboardReportParser::prevState

◆ kbdLeds

KBDLEDS KeyboardReportParser::kbdLeds

Definition at line 135 of file hidboot.h.

◆ bLeds

uint8_t KeyboardReportParser::bLeds

Definition at line 136 of file hidboot.h.

◆ kbdLockingKeys

union { ... } KeyboardReportParser::kbdLockingKeys

The documentation for this class was generated from the following files: