#[repr(transparent)]pub struct Mstatus(pub u32);Expand description
Master Status Register
Tuple Fields§
§0: u32Implementations§
Source§impl Mstatus
impl Mstatus
Sourcepub const fn set_between(&mut self, val: bool)
pub const fn set_between(&mut self, val: bool)
Between messages or Dynamic Address Assignments (DAA)
Sourcepub const fn set_nacked(&mut self, val: bool)
pub const fn set_nacked(&mut self, val: bool)
Not acknowledged
Sourcepub const fn set_ibitype(&mut self, val: Ibitype)
pub const fn set_ibitype(&mut self, val: Ibitype)
In-Band Interrupt (IBI) type
Sourcepub const fn set_slvstart(&mut self, val: bool)
pub const fn set_slvstart(&mut self, val: bool)
Slave start
Sourcepub const fn set_mctrldone(&mut self, val: bool)
pub const fn set_mctrldone(&mut self, val: bool)
Master control done
Sourcepub const fn set_complete(&mut self, val: bool)
pub const fn set_complete(&mut self, val: bool)
COMPLETE
Sourcepub const fn set_rxpend(&mut self, val: bool)
pub const fn set_rxpend(&mut self, val: bool)
RXPEND
Sourcepub const fn set_txnotfull(&mut self, val: bool)
pub const fn set_txnotfull(&mut self, val: bool)
TX buffer/FIFO not yet full
Sourcepub const fn set_ibiwon(&mut self, val: bool)
pub const fn set_ibiwon(&mut self, val: bool)
In-Band Interrupt (IBI) won
Sourcepub const fn set_errwarn(&mut self, val: bool)
pub const fn set_errwarn(&mut self, val: bool)
Error or warning
Sourcepub const fn set_nowmaster(&mut self, val: bool)
pub const fn set_nowmaster(&mut self, val: bool)
Now master (now this module is a master)
Sourcepub const fn set_ibiaddr(&mut self, val: u8)
pub const fn set_ibiaddr(&mut self, val: u8)
IBI address
Trait Implementations§
impl Copy for Mstatus
impl Eq for Mstatus
impl StructuralPartialEq for Mstatus
Auto Trait Implementations§
impl Freeze for Mstatus
impl RefUnwindSafe for Mstatus
impl Send for Mstatus
impl Sync for Mstatus
impl Unpin for Mstatus
impl UnwindSafe for Mstatus
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