#[repr(transparent)]pub struct Fstat(pub u32);Expand description
Flash Status Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Fstat
impl Fstat
Sourcepub const fn fail(&self) -> bool
pub const fn fail(&self) -> bool
Command Fail Flag. Raw bit values: false (0) = Zz27: Error not detected.; true (1) = Zz28: Error detected.
Sourcepub const fn set_fail(&mut self, val: bool)
pub const fn set_fail(&mut self, val: bool)
Command Fail Flag. Raw bit values: false (0) = Zz27: Error not detected.; true (1) = Zz28: Error detected.
Sourcepub const fn cmdabt(&self) -> bool
pub const fn cmdabt(&self) -> bool
Command Abort Flag. Raw bit values: false (0) = Zz25: No command abort detected.; true (1) = Zz26: Command abort detected.
Sourcepub const fn set_cmdabt(&mut self, val: bool)
pub const fn set_cmdabt(&mut self, val: bool)
Command Abort Flag. Raw bit values: false (0) = Zz25: No command abort detected.; true (1) = Zz26: Command abort detected.
Sourcepub const fn pviol(&self) -> bool
pub const fn pviol(&self) -> bool
Command Protection Violation Flag. Raw bit values: false (0) = Zz23: No protection violation detected.; true (1) = Zz24: Protection violation detected.
Sourcepub const fn set_pviol(&mut self, val: bool)
pub const fn set_pviol(&mut self, val: bool)
Command Protection Violation Flag. Raw bit values: false (0) = Zz23: No protection violation detected.; true (1) = Zz24: Protection violation detected.
Sourcepub const fn accerr(&self) -> bool
pub const fn accerr(&self) -> bool
Command Access Error Flag. Raw bit values: false (0) = Zz21: No access error detected.; true (1) = Zz22: Access error detected.
Sourcepub const fn set_accerr(&mut self, val: bool)
pub const fn set_accerr(&mut self, val: bool)
Command Access Error Flag. Raw bit values: false (0) = Zz21: No access error detected.; true (1) = Zz22: Access error detected.
Sourcepub const fn cwsabt(&self) -> bool
pub const fn cwsabt(&self) -> bool
Command Write Sequence Abort Flag. Raw bit values: false (0) = Zz19: Command write sequence not aborted.; true (1) = Zz20: Command write sequence aborted.
Sourcepub const fn set_cwsabt(&mut self, val: bool)
pub const fn set_cwsabt(&mut self, val: bool)
Command Write Sequence Abort Flag. Raw bit values: false (0) = Zz19: Command write sequence not aborted.; true (1) = Zz20: Command write sequence aborted.
Sourcepub const fn ccif(&self) -> bool
pub const fn ccif(&self) -> bool
Command Complete Interrupt Flag. Raw bit values: false (0) = Zz17: Flash command or initialization in progress.; true (1) = Zz18: Flash command or initialization has completed.
Sourcepub const fn set_ccif(&mut self, val: bool)
pub const fn set_ccif(&mut self, val: bool)
Command Complete Interrupt Flag. Raw bit values: false (0) = Zz17: Flash command or initialization in progress.; true (1) = Zz18: Flash command or initialization has completed.
Sourcepub const fn set_cmdprt(&mut self, val: Cmdprt)
pub const fn set_cmdprt(&mut self, val: Cmdprt)
Command Protection Level.
Sourcepub const fn cmdp(&self) -> bool
pub const fn cmdp(&self) -> bool
Command Protection Status Flag. Raw bit values: false (0) = Zz11: Command protection level and domain ID are stale.; true (1) = Zz12: Command protection level (CMDPRT) and domain ID (CMDDID) are set.
Sourcepub const fn set_cmdp(&mut self, val: bool)
pub const fn set_cmdp(&mut self, val: bool)
Command Protection Status Flag. Raw bit values: false (0) = Zz11: Command protection level and domain ID are stale.; true (1) = Zz12: Command protection level (CMDPRT) and domain ID (CMDDID) are set.
Sourcepub const fn set_cmddid(&mut self, val: u8)
pub const fn set_cmddid(&mut self, val: u8)
Command Domain ID.
Sourcepub const fn dfdif(&self) -> bool
pub const fn dfdif(&self) -> bool
Double Bit Fault Detect Interrupt Flag. Raw bit values: false (0) = Zz9: Double bit fault not detected during a valid flash read access from the FMC.; true (1) = Zz10: Double bit fault detected (or FCTRL[FDFD] is set) during a valid flash read access from the FMC.
Sourcepub const fn set_dfdif(&mut self, val: bool)
pub const fn set_dfdif(&mut self, val: bool)
Double Bit Fault Detect Interrupt Flag. Raw bit values: false (0) = Zz9: Double bit fault not detected during a valid flash read access from the FMC.; true (1) = Zz10: Double bit fault detected (or FCTRL[FDFD] is set) during a valid flash read access from the FMC.
Sourcepub const fn salv_used(&self) -> bool
pub const fn salv_used(&self) -> bool
Salvage Used for Erase operation. Raw bit values: false (0) = Zz7: Salvage not used during the last operation.; true (1) = Zz8: Salvage used during the last erase operation.
Sourcepub const fn set_salv_used(&mut self, val: bool)
pub const fn set_salv_used(&mut self, val: bool)
Salvage Used for Erase operation. Raw bit values: false (0) = Zz7: Salvage not used during the last operation.; true (1) = Zz8: Salvage used during the last erase operation.