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 (HID *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 (HID *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 ( )
inline

Definition at line 143 of file hidboot.h.

Member Function Documentation

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

Definition at line 165 of file hidboot.cpp.

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

Implements HIDReportParser.

Definition at line 127 of file hidboot.cpp.

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

Definition at line 151 of file hidboot.h.

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

Definition at line 172 of file hidboot.h.

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

Definition at line 175 of file hidboot.h.

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

Definition at line 178 of file hidboot.h.

virtual const uint8_t* KeyboardReportParser::getNumKeys ( )
inlineprotectedvirtual

Definition at line 181 of file hidboot.h.

virtual const uint8_t* KeyboardReportParser::getSymKeysUp ( )
inlineprotectedvirtual

Definition at line 185 of file hidboot.h.

virtual const uint8_t* KeyboardReportParser::getSymKeysLo ( )
inlineprotectedvirtual

Definition at line 189 of file hidboot.h.

virtual const uint8_t* KeyboardReportParser::getPadKeys ( )
inlineprotectedvirtual

Definition at line 193 of file hidboot.h.

Member Data Documentation

KBDINFO KeyboardReportParser::kbdInfo

Definition at line 130 of file hidboot.h.

uint8_t KeyboardReportParser::bInfo[sizeof(KBDINFO)]

Definition at line 131 of file hidboot.h.

union { ... } KeyboardReportParser::prevState
KBDLEDS KeyboardReportParser::kbdLeds

Definition at line 135 of file hidboot.h.

uint8_t KeyboardReportParser::bLeds

Definition at line 136 of file hidboot.h.

union { ... } KeyboardReportParser::kbdLockingKeys

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