#[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
const INPUT_PENDING_BITS: usize = 1usize
const INPUT_PENDING_OFFSET: usize = 1usize
const SYSTEM_FLAG_BITS: usize = 1usize
const SYSTEM_FLAG_OFFSET: usize = 2usize
const IS_COMMAND_BITS: usize = 1usize
const IS_COMMAND_OFFSET: usize = 3usize
const IS_MOUSE_BITS: usize = 1usize
const IS_MOUSE_OFFSET: usize = 5usize
const TIMEOUT_ERR_BITS: usize = 1usize
const TIMEOUT_ERR_OFFSET: usize = 6usize
const PARITY_ERR_BITS: usize = 1usize
const PARITY_ERR_OFFSET: usize = 7usize
sourceconst fn has_output(&self) -> bool
const fn has_output(&self) -> bool
Output buffer non-empty?
Bits: 0..1
sourceconst fn with_has_output_checked(self, value: bool) -> Result<Self, ()>
const fn with_has_output_checked(self, value: bool) -> Result<Self, ()>
Output buffer non-empty?
Bits: 0..1
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
sourcefn set_has_output(&mut self, value: bool)
fn set_has_output(&mut self, value: bool)
Output buffer non-empty?
Bits: 0..1
sourcefn set_has_output_checked(&mut self, value: bool) -> Result<(), ()>
fn set_has_output_checked(&mut self, value: bool) -> Result<(), ()>
Output buffer non-empty?
Bits: 0..1
sourceconst fn input_pending(&self) -> bool
const fn input_pending(&self) -> bool
Is input buffer full?
Bits: 1..2
sourceconst fn with_input_pending_checked(self, value: bool) -> Result<Self, ()>
const fn with_input_pending_checked(self, value: bool) -> Result<Self, ()>
Is input buffer full?
Bits: 1..2
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
sourcefn set_input_pending(&mut self, value: bool)
fn set_input_pending(&mut self, value: bool)
Is input buffer full?
Bits: 1..2
sourcefn set_input_pending_checked(&mut self, value: bool) -> Result<(), ()>
fn set_input_pending_checked(&mut self, value: bool) -> Result<(), ()>
Is input buffer full?
Bits: 1..2
sourceconst fn system_flag(&self) -> bool
const fn system_flag(&self) -> bool
Set on soft reset, cleared on power up
Bits: 2..3
sourceconst fn with_system_flag_checked(self, value: bool) -> Result<Self, ()>
const fn with_system_flag_checked(self, value: bool) -> Result<Self, ()>
Set on soft reset, cleared on power up
Bits: 2..3
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
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
sourcefn set_system_flag_checked(&mut self, value: bool) -> Result<(), ()>
fn set_system_flag_checked(&mut self, value: bool) -> Result<(), ()>
Set on soft reset, cleared on power up
Bits: 2..3
sourceconst fn is_command(&self) -> bool
const fn is_command(&self) -> bool
Is command Byte? (otherwise data)
Bits: 3..4
sourceconst fn with_is_command_checked(self, value: bool) -> Result<Self, ()>
const fn with_is_command_checked(self, value: bool) -> Result<Self, ()>
Is command Byte? (otherwise data)
Bits: 3..4
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
sourcefn set_is_command(&mut self, value: bool)
fn set_is_command(&mut self, value: bool)
Is command Byte? (otherwise data)
Bits: 3..4
sourcefn set_is_command_checked(&mut self, value: bool) -> Result<(), ()>
fn set_is_command_checked(&mut self, value: bool) -> Result<(), ()>
Is command Byte? (otherwise data)
Bits: 3..4
sourceconst fn with_is_mouse_checked(self, value: bool) -> Result<Self, ()>
const fn with_is_mouse_checked(self, value: bool) -> Result<Self, ()>
Mouse output has data
Bits: 5..6
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
sourcefn set_is_mouse_checked(&mut self, value: bool) -> Result<(), ()>
fn set_is_mouse_checked(&mut self, value: bool) -> Result<(), ()>
Mouse output has data
Bits: 5..6
sourceconst fn timeout_err(&self) -> bool
const fn timeout_err(&self) -> bool
Bits: 6..7
sourceconst fn with_timeout_err_checked(self, value: bool) -> Result<Self, ()>
const fn with_timeout_err_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
sourceconst fn with_timeout_err(self, value: bool) -> Self
const fn with_timeout_err(self, value: bool) -> Self
Bits: 6..7
sourcefn set_timeout_err(&mut self, value: bool)
fn set_timeout_err(&mut self, value: bool)
Bits: 6..7
sourcefn set_timeout_err_checked(&mut self, value: bool) -> Result<(), ()>
fn set_timeout_err_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 6..7
sourceconst fn parity_err(&self) -> bool
const fn parity_err(&self) -> bool
Bits: 7..8
sourceconst fn with_parity_err_checked(self, value: bool) -> Result<Self, ()>
const fn with_parity_err_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
sourceconst fn with_parity_err(self, value: bool) -> Self
const fn with_parity_err(self, value: bool) -> Self
Bits: 7..8
sourcefn set_parity_err(&mut self, value: bool)
fn set_parity_err(&mut self, value: bool)
Bits: 7..8
sourcefn set_parity_err_checked(&mut self, value: bool) -> Result<(), ()>
fn set_parity_err_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 7..8
Trait Implementations§
impl Copy for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)