pc_keyboardStruct Ps2Decoder
Source pub struct Ps2Decoder { }
Expand description
Handles decoding of IBM PS/2 Keyboard (and IBM PC/AT Keyboard) bit-streams.
Build a new PS/2 protocol decoder.
Clears the bit register.
Call this when there is a timeout reading data from the keyboard.
Shift a bit into the register.
Until the last bit is added you get Ok(None) returned.
Process an entire 11-bit word.
Must be packed into the bottom 11-bits of the 16-bit value.
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
[From]<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.