NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KbdSerialBridge Class Reference

A bridge on the keycode bus that converts keystrokes to ascii chars on the serial bus. More...

Inheritance diagram for KbdSerialBridge:
StaticReceiver< KbdSerialBridge > Device

Public Member Functions

bool receive (MessageInput &msg)
 KbdSerialBridge (DBus< MessageSerial > &bus_serial, unsigned keyboard, unsigned serial)
- Public Member Functions inherited from StaticReceiver< KbdSerialBridge >
 StaticReceiver ()
- Public Member Functions inherited from Device
void debug_dump ()
 Device (const char *debug_name)

Private Member Functions

const char * keycode2ansi (unsigned value)
char keycode2ascii (unsigned value)
void send_char (char ch)

Private Attributes

DBus< MessageSerial > & _bus_serial
unsigned _keyboard
unsigned _serial

Additional Inherited Members

- Static Public Member Functions inherited from StaticReceiver< KbdSerialBridge >
static bool receive_static (Device *o, M &msg)

Detailed Description

A bridge on the keycode bus that converts keystrokes to ascii chars on the serial bus.

State: testing Features: alphanumeric chars, ANSI escape codes Missing: some special chars, see keyboard.h for details.

Constructor & Destructor Documentation

KbdSerialBridge::KbdSerialBridge ( DBus< MessageSerial > &  bus_serial,
unsigned  keyboard,
unsigned  serial 
)
inline

Member Function Documentation

const char* KbdSerialBridge::keycode2ansi ( unsigned  value)
inlineprivate
char KbdSerialBridge::keycode2ascii ( unsigned  value)
inlineprivate
bool KbdSerialBridge::receive ( MessageInput msg)
inline
void KbdSerialBridge::send_char ( char  ch)
inlineprivate

Member Data Documentation

DBus<MessageSerial>& KbdSerialBridge::_bus_serial
private
unsigned KbdSerialBridge::_keyboard
private
unsigned KbdSerialBridge::_serial
private

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