#[repr(transparent)]pub struct Status(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl Status
impl Status
pub const fn int_status(&self) -> bool
pub const fn set_int_status(&mut self, val: bool)
Sourcepub const fn lock_status(&self) -> bool
pub const fn lock_status(&self) -> bool
The selected read index is locked.
Sourcepub const fn set_lock_status(&mut self, val: bool)
pub const fn set_lock_status(&mut self, val: bool)
The selected read index is locked.
Sourcepub const fn error_status(&self) -> u8
pub const fn error_status(&self) -> u8
Bit 0 is FSM error, bit 1 write-index out of bounds, bit 2 read-index out of bounds.
Sourcepub const fn set_error_status(&mut self, val: u8)
pub const fn set_error_status(&mut self, val: u8)
Bit 0 is FSM error, bit 1 write-index out of bounds, bit 2 read-index out of bounds.
Sourcepub const fn set_fsm_state(&mut self, val: u16)
pub const fn set_fsm_state(&mut self, val: u16)
Encoded FSM state. INIT is 0x16; WR_DISABLED is 0x0B.
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq 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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more