Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

keyboard.h File Reference

Low level keyboard driver header. More...

Go to the source code of this file.

Defines

#define KEYB_PORT   0x60
 Keyboard base address port.

#define KEYB_ACK   0x61
 Keyboard acknowledge register.

#define KEYB_STATUS   0x64
 Keyboard status register.

#define KEYB_LED_CODE   0xED
 Keyboard LED register.

#define KEYB_BUSY   0x02
 The keyboard controller is busy.

#define KEYB_SET_TYPEMATIC   0xF3
 Command to set the typematic delay and rate.

#define DEL_SCAN   83
 DEL scan code.

#define CTRL_C   0x2E03
 CTRL+C ASCII code.

#define CTRL_X   0x2D18
 CTRL+X ASCII code.

#define ALT_F1   0x6800
 ALT+F1 ASCII code.

#define ALT_F2   0x6900
 ALT+F2 ASCII code.

#define ALT_F3   0x6A00
 ALT+F3 ASCII code.

#define ALT_F4   0x6B00
 ALT+F4 ASCII code.

#define ALT_F5   0x6C00
 ALT+F5 ASCII code.

#define ALT_F6   0x6D00
 ALT+F6 ASCII code.

#define ALT_F7   0x6E00
 ALT+F7 ASCII code.

#define ALT_F8   0x6F00
 ALT+F8 ASCII code.

#define ALT_F9   0x7000
 ALT+F9 ASCII code.

#define ALT_F10   0x7100
 ALT+F10 ASCII code.

#define ALT_F11   0x8B00
 ALT+F11 ASCII code.

#define ALT_F12   0x8C00
 ALT+F12 ASCII code.


Functions

void update_leds ()
 Update keyboard leds.

void keyb_wait ()
 Wait after a keyboard operation.

void init_keyboard ()
 Initialize the low-level keyboard driver.

word scan_key ()
 Get the hitten key keyboard code.
Returns:
The hitten key scan code.


void keyboard_handler ()
 This is the keyboard interrupt handler routine. It is invoked every time a key is pressed or released on the keyboard.

int kgetchar ()
 Wait for keypressed and return the hitten character ASCII code.
Returns:
The hitten character ASCII code.


int keyb_read ()
 Return the first key in the buffer, without waiting if the buffer is empty.
Returns:
The hitten character ASCII code if a character has been hitten or NULL otherwise.



Detailed Description

Low level keyboard driver header.

Author:
Andrea Righi <drizzt@inwind.it>
Date:
Last update: 2003-11-08
Note:
Copyright (©) 2003 Andrea Righi

Definition in file keyboard.h.


Define Documentation

#define ALT_F1   0x6800
 

ALT+F1 ASCII code.

Definition at line 40 of file keyboard.h.

#define ALT_F10   0x7100
 

ALT+F10 ASCII code.

Definition at line 58 of file keyboard.h.

#define ALT_F11   0x8B00
 

ALT+F11 ASCII code.

Definition at line 60 of file keyboard.h.

#define ALT_F12   0x8C00
 

ALT+F12 ASCII code.

Definition at line 62 of file keyboard.h.

#define ALT_F2   0x6900
 

ALT+F2 ASCII code.

Definition at line 42 of file keyboard.h.

#define ALT_F3   0x6A00
 

ALT+F3 ASCII code.

Definition at line 44 of file keyboard.h.

#define ALT_F4   0x6B00
 

ALT+F4 ASCII code.

Definition at line 46 of file keyboard.h.

#define ALT_F5   0x6C00
 

ALT+F5 ASCII code.

Definition at line 48 of file keyboard.h.

#define ALT_F6   0x6D00
 

ALT+F6 ASCII code.

Definition at line 50 of file keyboard.h.

#define ALT_F7   0x6E00
 

ALT+F7 ASCII code.

Definition at line 52 of file keyboard.h.

#define ALT_F8   0x6F00
 

ALT+F8 ASCII code.

Definition at line 54 of file keyboard.h.

#define ALT_F9   0x7000
 

ALT+F9 ASCII code.

Definition at line 56 of file keyboard.h.

#define CTRL_C   0x2E03
 

CTRL+C ASCII code.

Definition at line 35 of file keyboard.h.

#define CTRL_X   0x2D18
 

CTRL+X ASCII code.

Definition at line 37 of file keyboard.h.

#define DEL_SCAN   83
 

DEL scan code.

Definition at line 32 of file keyboard.h.

#define KEYB_ACK   0x61
 

Keyboard acknowledge register.

Definition at line 16 of file keyboard.h.

#define KEYB_BUSY   0x02
 

The keyboard controller is busy.

Definition at line 25 of file keyboard.h.

#define KEYB_LED_CODE   0xED
 

Keyboard LED register.

Definition at line 20 of file keyboard.h.

#define KEYB_PORT   0x60
 

Keyboard base address port.

Definition at line 14 of file keyboard.h.

#define KEYB_SET_TYPEMATIC   0xF3
 

Command to set the typematic delay and rate.

Definition at line 27 of file keyboard.h.

#define KEYB_STATUS   0x64
 

Keyboard status register.

Definition at line 18 of file keyboard.h.


Generated on Fri Feb 20 15:32:19 2004 for Minirighi by doxygen1.2.18