#[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 has_output(&self) -> bool
const fn has_output(&self) -> bool
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
const INPUT_PENDING_BITS: usize = 1usize
const INPUT_PENDING_OFFSET: usize = 1usize
sourceconst fn input_pending(&self) -> bool
const fn input_pending(&self) -> bool
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
const SYSTEM_FLAG_BITS: usize = 1usize
const SYSTEM_FLAG_OFFSET: usize = 2usize
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(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
const IS_COMMAND_BITS: usize = 1usize
const IS_COMMAND_OFFSET: usize = 3usize
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(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
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 timeout_err(&self) -> bool
const fn timeout_err(&self) -> bool
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
const PARITY_ERR_BITS: usize = 1usize
const PARITY_ERR_OFFSET: usize = 7usize
sourceconst fn parity_err(&self) -> bool
const fn parity_err(&self) -> bool
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
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
Mutably borrows from an owned value. Read more
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>,
Casts the value.
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>
Casts the value.
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.