#[repr(transparent)]struct Status(u8);
Expand description
Flags in the PS/2 controller status register
Tuple Fields§
§0: u8
Implementations§
source§impl Status
impl Status
const HAS_OUTPUT_BITS: usize = 1usize
const HAS_OUTPUT_OFFSET: usize = 0usize
sourceconst fn with_has_output(self, value: bool) -> Self
const fn with_has_output(self, value: bool) -> Self
Output buffer non-empty?
Bits: 0..1
sourceconst fn has_output(&self) -> bool
const fn has_output(&self) -> bool
Output buffer non-empty?
Bits: 0..1
sourcefn set_has_output(&mut self, value: bool)
fn set_has_output(&mut self, value: bool)
Output buffer non-empty?
Bits: 0..1
const INPUT_PENDING_BITS: usize = 1usize
const INPUT_PENDING_OFFSET: usize = 1usize
sourceconst fn with_input_pending(self, value: bool) -> Self
const fn with_input_pending(self, value: bool) -> Self
Is input buffer full?
Bits: 1..2
sourceconst fn input_pending(&self) -> bool
const fn input_pending(&self) -> bool
Is input buffer full?
Bits: 1..2
sourcefn set_input_pending(&mut self, value: bool)
fn set_input_pending(&mut self, value: bool)
Is input buffer full?
Bits: 1..2
const SYSTEM_FLAG_BITS: usize = 1usize
const SYSTEM_FLAG_OFFSET: usize = 2usize
sourceconst fn with_system_flag(self, value: bool) -> Self
const fn with_system_flag(self, value: bool) -> Self
Set on soft reset, cleared on power up
Bits: 2..3
sourceconst fn system_flag(&self) -> bool
const fn system_flag(&self) -> bool
Set on soft reset, cleared on power up
Bits: 2..3
sourcefn set_system_flag(&mut self, value: bool)
fn set_system_flag(&mut self, value: bool)
Set on soft reset, cleared on power up
Bits: 2..3
const IS_COMMAND_BITS: usize = 1usize
const IS_COMMAND_OFFSET: usize = 3usize
sourceconst fn with_is_command(self, value: bool) -> Self
const fn with_is_command(self, value: bool) -> Self
Is command Byte? (otherwise data)
Bits: 3..4
sourceconst fn is_command(&self) -> bool
const fn is_command(&self) -> bool
Is command Byte? (otherwise data)
Bits: 3..4
sourcefn set_is_command(&mut self, value: bool)
fn set_is_command(&mut self, value: bool)
Is command Byte? (otherwise data)
Bits: 3..4
const IS_MOUSE_BITS: usize = 1usize
const IS_MOUSE_OFFSET: usize = 5usize
sourceconst fn with_is_mouse(self, value: bool) -> Self
const fn with_is_mouse(self, value: bool) -> Self
Mouse output has data
Bits: 5..6
sourcefn set_is_mouse(&mut self, value: bool)
fn set_is_mouse(&mut self, value: bool)
Mouse output has data
Bits: 5..6
const TIMEOUT_ERR_BITS: usize = 1usize
const TIMEOUT_ERR_OFFSET: usize = 6usize
sourceconst fn with_timeout_err(self, value: bool) -> Self
const fn with_timeout_err(self, value: bool) -> Self
Bits: 6..7
sourceconst fn timeout_err(&self) -> bool
const fn timeout_err(&self) -> bool
Bits: 6..7
sourcefn set_timeout_err(&mut self, value: bool)
fn set_timeout_err(&mut self, value: bool)
Bits: 6..7
const PARITY_ERR_BITS: usize = 1usize
const PARITY_ERR_OFFSET: usize = 7usize
sourceconst fn with_parity_err(self, value: bool) -> Self
const fn with_parity_err(self, value: bool) -> Self
Bits: 7..8
sourceconst fn parity_err(&self) -> bool
const fn parity_err(&self) -> bool
Bits: 7..8
sourcefn set_parity_err(&mut self, value: bool)
fn set_parity_err(&mut self, value: bool)
Bits: 7..8