![]() |
Max OS 0.3
|
Driver for the Keyboard Controller, manages the events and the keyboard state. More...
#include <keyboard.h>
Public Member Functions | |
| KeyboardDriver () | |
| Construct a new Keyboard Driver object, registering it as an interrupt handler for interrupt 0x21. | |
| void | handle_interrupt () final |
| deactivate the keyboard driver | |
| void | activate () final |
| activate the keyboard driver | |
| string | device_name () final |
| Get the device name. | |
Public Member Functions inherited from MaxOS::hardwarecommunication::InterruptHandler | |
| virtual system::cpu_status_t * | handle_interrupt (system::cpu_status_t *status) |
| Handles an interrupt and returns the status. | |
Public Member Functions inherited from MaxOS::drivers::Driver | |
| virtual void | deactivate () |
| Deactivate the driver. | |
| virtual void | initialise () |
| Initialise the driver. | |
| virtual uint32_t | reset () |
| Reset the driver. | |
| virtual string | vendor_name () |
| Get who created the device. | |
Public Member Functions inherited from MaxOS::common::GenericInputStream< uint8_t > | |
| GenericInputStream () | |
| Creates a new GenericInputStream. | |
| GenericInputStream (InputStreamEventHandler< uint8_t > *) | |
| Creates a new GenericInputStream and connects it to the handler. | |
| ~GenericInputStream () | |
| Destroys the GenericInputStream and disconnects all handlers. | |
| void | connect_input_stream_event_handler (InputStreamEventHandler< uint8_t > *) |
| Adds a inputStreamEventHandler to the list of internetProtocolHandlers. | |
| void | disconnect_input_stream_event_handler (InputStreamEventHandler< uint8_t > *) |
| Removes a handler from the list of handlers. | |
Additional Inherited Members | |
Protected Member Functions inherited from MaxOS::hardwarecommunication::InterruptHandler | |
| InterruptHandler (uint8_t interrupt_number, int64_t redirect=-1, uint64_t redirect_index=0) | |
| Creates a new interrupt handler and registers it with the interrupt manager. | |
| ~InterruptHandler () | |
| Destroys the interrupt handler and unregisters it from the interrupt manager. | |
Protected Attributes inherited from MaxOS::hardwarecommunication::InterruptHandler | |
| uint8_t | m_interrupt_number |
| The interrupt number this handler handles. | |
Protected Attributes inherited from MaxOS::common::GenericInputStream< uint8_t > | |
| common::Vector< InputStreamEventHandler< uint8_t > * > | m_input_stream_event_handlers |
| List of streams being observed by this handler. | |
Driver for the Keyboard Controller, manages the events and the keyboard state.
Definition at line 446 of file keyboard.h.
| KeyboardDriver::KeyboardDriver | ( | ) |
Construct a new Keyboard Driver object, registering it as an interrupt handler for interrupt 0x21.
Definition at line 67 of file keyboard.cpp.
|
finalvirtual |
activate the keyboard driver
Reimplemented from MaxOS::drivers::Driver.
Definition at line 81 of file keyboard.cpp.
References MaxOS::hardwarecommunication::Port8Bit::read(), and MaxOS::hardwarecommunication::Port8Bit::write().
|
finalvirtual |
Get the device name.
Reimplemented from MaxOS::drivers::Driver.
Definition at line 117 of file keyboard.cpp.
|
finalvirtual |
deactivate the keyboard driver
Reimplemented from MaxOS::hardwarecommunication::InterruptHandler.
Definition at line 105 of file keyboard.cpp.
References MaxOS::common::GenericInputStream< uint8_t >::m_input_stream_event_handlers, and MaxOS::hardwarecommunication::Port8Bit::read().