StuBS
|
#include "machine/ps2controller.h"
#include "machine/keydecoder.h"
#include "machine/mousedecoder.h"
#include "machine/ioport.h"
#include "debug/output.h"
#include "compiler/fix.h"
Namespaces | |
namespace | PS2Controller |
PS/2 Controller. | |
Functions | |
static uint8_t | PS2Controller::receiveData () |
Receive requested data / answer from the controller (or the PS/2 device) | |
static void | PS2Controller::sendCommand (ControllerCommand cmd) |
Send command to the controller by writing it into the command register. | |
static void MAYBE_UNUSED | PS2Controller::sendData (uint8_t value) |
Send a command or data to a connected PS/2 device. | |
void | PS2Controller::init () |
Initialization of connected devices. | |
bool | PS2Controller::fetch (Key &pressed) |
Retrieve the keyboard event. | |
bool | PS2Controller::fetch (Pointer &state) |
Retrieve the mouse event. | |
void | PS2Controller::setRepeatRate (Speed speed, Delay delay) |
Configure the repeat rate of the keyboard. | |
void | PS2Controller::setLed (enum LED led, bool on) |
Enable or disable a keyboard LED. | |
void | PS2Controller::drainBuffer () |
Empties the keyboard buffer. | |
Constants | |
static const IOPort | PS2Controller::ctrl_port (0x64) |
Access status- (read) and command (write) register. | |
static const IOPort | PS2Controller::data_port (0x60) |
Access PS/2 device [keyboard] output- (read) and input (write) buffer. | |
static KeyDecoder | PS2Controller::key_decoder |
static MouseDecoder | PS2Controller::mouse_decoder |
static uint8_t MAYBE_UNUSED | PS2Controller::leds = 0 |