pub struct FstsReg(/* private fields */);Expand description
Fault Status Register (MMIO offset 0x034, 32-bit, RW1C). §10.4.9.
Reports fault recording status. PPF is dynamically computed as OR of all FRCD[n].F bits.
Implementations§
Source§impl FstsReg
impl FstsReg
Sourcepub const fn pfo(&self) -> bool
pub const fn pfo(&self) -> bool
Primary Fault Overflow — a fault was discarded because all records were occupied.
Bits: 0..1
Sourcepub const fn with_pfo_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_pfo_checked(self, value: bool) -> Result<Self, ()>
Primary Fault Overflow — a fault was discarded because all records were occupied.
Bits: 0..1
Sourcepub const fn with_pfo(self, value: bool) -> Self
pub const fn with_pfo(self, value: bool) -> Self
Primary Fault Overflow — a fault was discarded because all records were occupied.
Bits: 0..1
Sourcepub const fn set_pfo(&mut self, value: bool)
pub const fn set_pfo(&mut self, value: bool)
Primary Fault Overflow — a fault was discarded because all records were occupied.
Bits: 0..1
Sourcepub const fn set_pfo_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_pfo_checked(&mut self, value: bool) -> Result<(), ()>
Primary Fault Overflow — a fault was discarded because all records were occupied.
Bits: 0..1
Sourcepub const fn ppf(&self) -> bool
pub const fn ppf(&self) -> bool
Primary Fault Pending — dynamically computed as OR of FRCD[n].F. Not independently stored; always reflects current FRCD state.
Bits: 1..2
Sourcepub const fn with_ppf_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ppf_checked(self, value: bool) -> Result<Self, ()>
Primary Fault Pending — dynamically computed as OR of FRCD[n].F. Not independently stored; always reflects current FRCD state.
Bits: 1..2
Sourcepub const fn with_ppf(self, value: bool) -> Self
pub const fn with_ppf(self, value: bool) -> Self
Primary Fault Pending — dynamically computed as OR of FRCD[n].F. Not independently stored; always reflects current FRCD state.
Bits: 1..2
Sourcepub const fn set_ppf(&mut self, value: bool)
pub const fn set_ppf(&mut self, value: bool)
Primary Fault Pending — dynamically computed as OR of FRCD[n].F. Not independently stored; always reflects current FRCD state.
Bits: 1..2
Sourcepub const fn set_ppf_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_ppf_checked(&mut self, value: bool) -> Result<(), ()>
Primary Fault Pending — dynamically computed as OR of FRCD[n].F. Not independently stored; always reflects current FRCD state.
Bits: 1..2
Sourcepub const fn with_afo_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_afo_checked(self, value: bool) -> Result<Self, ()>
Advanced Fault Overflow (not used).
Bits: 2..3
Sourcepub const fn with_afo(self, value: bool) -> Self
pub const fn with_afo(self, value: bool) -> Self
Advanced Fault Overflow (not used).
Bits: 2..3
Sourcepub const fn set_afo_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_afo_checked(&mut self, value: bool) -> Result<(), ()>
Advanced Fault Overflow (not used).
Bits: 2..3
Sourcepub const fn with_apf_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_apf_checked(self, value: bool) -> Result<Self, ()>
Advanced Fault Pending (not used).
Bits: 3..4
Sourcepub const fn set_apf_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_apf_checked(&mut self, value: bool) -> Result<(), ()>
Advanced Fault Pending (not used).
Bits: 3..4
Sourcepub const fn iqe(&self) -> bool
pub const fn iqe(&self) -> bool
Invalidation Queue Error — illegal descriptor in the queue.
Bits: 4..5
Sourcepub const fn with_iqe_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_iqe_checked(self, value: bool) -> Result<Self, ()>
Invalidation Queue Error — illegal descriptor in the queue.
Bits: 4..5
Sourcepub const fn with_iqe(self, value: bool) -> Self
pub const fn with_iqe(self, value: bool) -> Self
Invalidation Queue Error — illegal descriptor in the queue.
Bits: 4..5
Sourcepub const fn set_iqe(&mut self, value: bool)
pub const fn set_iqe(&mut self, value: bool)
Invalidation Queue Error — illegal descriptor in the queue.
Bits: 4..5
Sourcepub const fn set_iqe_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_iqe_checked(&mut self, value: bool) -> Result<(), ()>
Invalidation Queue Error — illegal descriptor in the queue.
Bits: 4..5
Sourcepub const fn with_ice_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ice_checked(self, value: bool) -> Result<Self, ()>
Invalidation Completion Error (not used).
Bits: 5..6
Sourcepub const fn with_ice(self, value: bool) -> Self
pub const fn with_ice(self, value: bool) -> Self
Invalidation Completion Error (not used).
Bits: 5..6
Sourcepub const fn set_ice(&mut self, value: bool)
pub const fn set_ice(&mut self, value: bool)
Invalidation Completion Error (not used).
Bits: 5..6
Sourcepub const fn set_ice_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_ice_checked(&mut self, value: bool) -> Result<(), ()>
Invalidation Completion Error (not used).
Bits: 5..6
Sourcepub const fn with_ite_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ite_checked(self, value: bool) -> Result<Self, ()>
Invalidation Timeout Error (not used).
Bits: 6..7
Sourcepub const fn with_ite(self, value: bool) -> Self
pub const fn with_ite(self, value: bool) -> Self
Invalidation Timeout Error (not used).
Bits: 6..7
Sourcepub const fn set_ite_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_ite_checked(&mut self, value: bool) -> Result<(), ()>
Invalidation Timeout Error (not used).
Bits: 6..7
Sourcepub const fn fri(&self) -> u8
pub const fn fri(&self) -> u8
Fault Record Index — index of the first pending fault record.
Bits: 8..16
Sourcepub const fn with_fri_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_fri_checked(self, value: u8) -> Result<Self, ()>
Fault Record Index — index of the first pending fault record.
Bits: 8..16
Sourcepub const fn with_fri(self, value: u8) -> Self
pub const fn with_fri(self, value: u8) -> Self
Fault Record Index — index of the first pending fault record.
Bits: 8..16