Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Keyb Class Reference

Platform independent keyboard stub. More...

#include <keyb.h>

Inheritance diagram for Keyb:

Console List of all members.

Public Member Functions

int getchar (bool blocking=true)
 read a charcater from the input.
int write (char const *str, size_t len)
 Write a string of len chacters to the output.
Mword get_attributes () const
 Console attributes.

Private Types

enum  {
  K_RDWR = 0x60, K_STATUS = 0x64, K_CMD = 0x64, K_OBUF_FUL = 0x01,
  K_IBUF_FUL = 0x02, K_SYSFLAG = 0x04, K_CMD_DATA = 0x08, K_KBD_INHIBIT = 0x10,
  K_AUX_OBUF_FUL = 0x20, K_TIMEOUT = 0x40, K_PARITY_ERROR = 0x80, KC_CMD_READ = 0x20,
  KC_CMD_WRITE = 0x60, KC_CMD_DIS_AUX = 0xa7, KC_CMD_ENB_AUX = 0xa8, KC_CMD_TEST_AUX = 0xa9,
  KC_CMD_SELFTEST = 0xaa, KC_CMD_TEST = 0xab, KC_CMD_DUMP = 0xac, KC_CMD_DISABLE = 0xad,
  KC_CMD_ENABLE = 0xae, KC_CMD_RDKBD = 0xc4, KC_CMD_WIN = 0xd0, KC_CMD_WOUT = 0xd1,
  KC_CMD_ECHO = 0xee, KC_CMD_PULSE = 0xff, K_CMD_LEDS = 0xed, K_CB_ENBLIRQ = 0x01,
  K_CB_SETSYSF = 0x04, K_CB_INHBOVR = 0x08, K_CB_DISBLE = 0x10, K_LED_SCRLLK = 0x1,
  K_LED_NUMLK = 0x2, K_LED_CAPSLK = 0x4, K_ENABLETMR2 = 0x01, K_SPKRDATA = 0x02,
  K_ENABLEPRTB = 0x04, K_EIOPRTB = 0x08, K_REFRESHB = 0x10, K_OUT2B = 0x20,
  K_ICKB = 0x40, KO_SYSRESET = 0x01, KO_GATE20 = 0x02, KO_AUX_DATA_OUT = 0x04,
  KO_AUX_CLOCK = 0x08, KO_OBUF_FUL = 0x10, KO_AUX_OBUF_FUL = 0x20, KO_CLOCK = 0x40,
  KO_DATA_OUT = 0x80
}

Detailed Description

Platform independent keyboard stub.

Provides an empty implentation for write(...).


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
K_RDWR 
K_STATUS 
K_CMD 
K_OBUF_FUL 
K_IBUF_FUL 
K_SYSFLAG 
K_CMD_DATA 
K_KBD_INHIBIT 
K_AUX_OBUF_FUL 
K_TIMEOUT 
K_PARITY_ERROR 
KC_CMD_READ 
KC_CMD_WRITE 
KC_CMD_DIS_AUX 
KC_CMD_ENB_AUX 
KC_CMD_TEST_AUX 
KC_CMD_SELFTEST 
KC_CMD_TEST 
KC_CMD_DUMP 
KC_CMD_DISABLE 
KC_CMD_ENABLE 
KC_CMD_RDKBD 
KC_CMD_WIN 
KC_CMD_WOUT 
KC_CMD_ECHO 
KC_CMD_PULSE 
K_CMD_LEDS 
K_CB_ENBLIRQ 
K_CB_SETSYSF 
K_CB_INHBOVR 
K_CB_DISBLE 
K_LED_SCRLLK 
K_LED_NUMLK 
K_LED_CAPSLK 
K_ENABLETMR2 
K_SPKRDATA 
K_ENABLEPRTB 
K_EIOPRTB 
K_REFRESHB 
K_OUT2B 
K_ICKB 
KO_SYSRESET 
KO_GATE20 
KO_AUX_DATA_OUT 
KO_AUX_CLOCK 
KO_OBUF_FUL 
KO_AUX_OBUF_FUL 
KO_CLOCK 
KO_DATA_OUT 


Member Function Documentation

Mword Keyb::get_attributes  )  const [virtual]
 

Console attributes.

Reimplemented from Console.

int Keyb::getchar bool  blocking = true  )  [virtual]
 

read a charcater from the input.

Parameters:
blocking if true getchar blocks til a charcater is available.
This method must be implemented in every implementation, but can simply return -1 for output only consoles.

Reimplemented from Console.

int Keyb::write char const *  str,
size_t  len
[virtual]
 

Write a string of len chacters to the output.

Parameters:
str the string to write (no zero termination is needed)
len the number of chacters to write.
This method must be implemented in every implementation, but can simply do nothing for input only consoles.

Reimplemented from Console.


The documentation for this class was generated from the following files:
Generated on Mon Sep 26 14:20:16 2005 for Fiasco by  doxygen 1.4.2