#[repr(transparent)]pub struct Mstatus2(pub u32);Expand description
Controller Status.
Tuple Fields§
§0: u32Implementations§
Source§impl Mstatus2
impl Mstatus2
Sourcepub const fn between(&self) -> bool
pub const fn between(&self) -> bool
Between. Raw bit values: false (0) = Inactive: Inactive (for other cases).; true (1) = Active: Active.
Sourcepub const fn set_between(&mut self, val: bool)
pub const fn set_between(&mut self, val: bool)
Between. Raw bit values: false (0) = Inactive: Inactive (for other cases).; true (1) = Active: Active.
Sourcepub const fn nacked(&self) -> bool
pub const fn nacked(&self) -> bool
Not Acknowledged. Raw bit values: false (0) = NotNacked: Not NACKed.; true (1) = Nacked: NACKed (not acknowledged).
Sourcepub const fn set_nacked(&mut self, val: bool)
pub const fn set_nacked(&mut self, val: bool)
Not Acknowledged. Raw bit values: false (0) = NotNacked: Not NACKed.; true (1) = Nacked: NACKed (not acknowledged).
Sourcepub const fn set_ibitype(&mut self, val: Ibitype2)
pub const fn set_ibitype(&mut self, val: Ibitype2)
In-Band Interrupt (IBI) Type.
Sourcepub const fn slvstart(&self) -> bool
pub const fn slvstart(&self) -> bool
Target Start. Raw bit values: false (0) = NotStart: Target not requesting START.; true (1) = Start: Target requesting START.
Sourcepub const fn set_slvstart(&mut self, val: bool)
pub const fn set_slvstart(&mut self, val: bool)
Target Start. Raw bit values: false (0) = NotStart: Target not requesting START.; true (1) = Start: Target requesting START.
Sourcepub const fn mctrldone(&self) -> bool
pub const fn mctrldone(&self) -> bool
Controller Control Done. Raw bit values: false (0) = NotDone: Not done.; true (1) = Done: Done.
Sourcepub const fn set_mctrldone(&mut self, val: bool)
pub const fn set_mctrldone(&mut self, val: bool)
Controller Control Done. Raw bit values: false (0) = NotDone: Not done.; true (1) = Done: Done.
Sourcepub const fn complete(&self) -> bool
pub const fn complete(&self) -> bool
Complete. Raw bit values: false (0) = NotComplete: Not complete.; true (1) = Complete: Complete.
Sourcepub const fn set_complete(&mut self, val: bool)
pub const fn set_complete(&mut self, val: bool)
Complete. Raw bit values: false (0) = NotComplete: Not complete.; true (1) = Complete: Complete.
Sourcepub const fn rxpend(&self) -> bool
pub const fn rxpend(&self) -> bool
RXPEND. Raw bit values: false (0) = Idle: No receive message pending.; true (1) = Pending: Receive message pending.
Sourcepub const fn set_rxpend(&mut self, val: bool)
pub const fn set_rxpend(&mut self, val: bool)
RXPEND. Raw bit values: false (0) = Idle: No receive message pending.; true (1) = Pending: Receive message pending.
Sourcepub const fn txnotfull(&self) -> bool
pub const fn txnotfull(&self) -> bool
TX Buffer or FIFO Not Full. Raw bit values: false (0) = Full: Receive buffer or FIFO full.; true (1) = Notfull: Receive buffer or FIFO not full.
Sourcepub const fn set_txnotfull(&mut self, val: bool)
pub const fn set_txnotfull(&mut self, val: bool)
TX Buffer or FIFO Not Full. Raw bit values: false (0) = Full: Receive buffer or FIFO full.; true (1) = Notfull: Receive buffer or FIFO not full.
Sourcepub const fn ibiwon(&self) -> bool
pub const fn ibiwon(&self) -> bool
In-Band Interrupt (IBI) Won. Raw bit values: false (0) = NotWon: No IBI arbitration won.; true (1) = Won: IBI arbitration won.
Sourcepub const fn set_ibiwon(&mut self, val: bool)
pub const fn set_ibiwon(&mut self, val: bool)
In-Band Interrupt (IBI) Won. Raw bit values: false (0) = NotWon: No IBI arbitration won.; true (1) = Won: IBI arbitration won.
Sourcepub const fn errwarn(&self) -> bool
pub const fn errwarn(&self) -> bool
Error or Warning. Raw bit values: false (0) = NoError: No error or warning.; true (1) = Error: Error or warning.
Sourcepub const fn set_errwarn(&mut self, val: bool)
pub const fn set_errwarn(&mut self, val: bool)
Error or Warning. Raw bit values: false (0) = NoError: No error or warning.; true (1) = Error: Error or warning.
Sourcepub const fn nowmaster(&self) -> bool
pub const fn nowmaster(&self) -> bool
Module is now Controller. Raw bit values: false (0) = NotMaster: Not a controller.; true (1) = Master: Controller.
Sourcepub const fn set_nowmaster(&mut self, val: bool)
pub const fn set_nowmaster(&mut self, val: bool)
Module is now Controller. Raw bit values: false (0) = NotMaster: Not a controller.; true (1) = Master: Controller.
Sourcepub const fn set_ibiaddr(&mut self, val: u8)
pub const fn set_ibiaddr(&mut self, val: u8)
IBI Address.