Crate pc_keyboard

source ·
Expand description

Driver for a PS/2 keyboard.

Only supports PS/2 Scan Code Set 2, on a UK English keyboard. See the OSDev Wiki.

Requires that you sample a pin in an interrupt routine and shift in the bit. We don’t sample the pin in this library, as that makes testing difficult, and it means you have to make this object a global static mut that the interrupt can access, which is unsafe.

Modules

Structs

Contains the implementation of Scancode Set 1. See the OS dev wiki: https://wiki.osdev.org/PS/2_Keyboard#Scan_Code_Set_1
Contains the implementation of Scancode Set 2. See the OS dev wiki: https://wiki.osdev.org/PS/2_Keyboard#Scan_Code_Set_2

Enums

Traits