USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 ()
 
virtual 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)
 
uint8_t HandleLockingKeys (HID *hid, uint8_t key)
 
virtual void OnKeyDown (uint8_t mod, uint8_t key)
 
virtual void OnKeyUp (uint8_t mod, uint8_t key)
 

Protected Attributes

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

Detailed Description

Definition at line 133 of file hidboot.h.

Constructor & Destructor Documentation

KeyboardReportParser::KeyboardReportParser ( )
inline

Definition at line 155 of file hidboot.h.

Member Function Documentation

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

Definition at line 102 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 48 of file hidboot.cpp.

uint8_t KeyboardReportParser::HandleLockingKeys ( HID hid,
uint8_t  key 
)
protected

Definition at line 76 of file hidboot.cpp.

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

Definition at line 164 of file hidboot.h.

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

Definition at line 167 of file hidboot.h.

Member Data Documentation

KBDINFO KeyboardReportParser::kbdInfo

Definition at line 142 of file hidboot.h.

uint8_t KeyboardReportParser::bInfo[sizeof(KBDINFO)]

Definition at line 143 of file hidboot.h.

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

Definition at line 147 of file hidboot.h.

uint8_t KeyboardReportParser::bLeds

Definition at line 148 of file hidboot.h.

union { ... } KeyboardReportParser::kbdLockingKeys

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