pub struct FrcdHi(/* private fields */);Expand description
Fault Recording Register — high 64 bits (CAP.FRO*16 + 8). §11.4.7.6.
Contains fault metadata: source ID, fault reason, type, and the fault bit.
Implementations§
Source§impl FrcdHi
impl FrcdHi
Sourcepub const fn with_sid_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_sid_checked(self, value: u16) -> Result<Self, ()>
Source ID (BDF) of the faulting device.
Bits: 0..16
Sourcepub const fn with_sid(self, value: u16) -> Self
pub const fn with_sid(self, value: u16) -> Self
Source ID (BDF) of the faulting device.
Bits: 0..16
Sourcepub const fn set_sid(&mut self, value: u16)
pub const fn set_sid(&mut self, value: u16)
Source ID (BDF) of the faulting device.
Bits: 0..16
Sourcepub const fn set_sid_checked(&mut self, value: u16) -> Result<(), ()>
pub const fn set_sid_checked(&mut self, value: u16) -> Result<(), ()>
Source ID (BDF) of the faulting device.
Bits: 0..16
Sourcepub const fn fr(&self) -> u8
pub const fn fr(&self) -> u8
Fault Reason code, full-register bits 103:96. See FaultReason.
Bits: 32..40
Sourcepub const fn with_fr_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_fr_checked(self, value: u8) -> Result<Self, ()>
Fault Reason code, full-register bits 103:96. See FaultReason.
Bits: 32..40
Sourcepub const fn with_fr(self, value: u8) -> Self
pub const fn with_fr(self, value: u8) -> Self
Fault Reason code, full-register bits 103:96. See FaultReason.
Bits: 32..40
Sourcepub const fn set_fr(&mut self, value: u8)
pub const fn set_fr(&mut self, value: u8)
Fault Reason code, full-register bits 103:96. See FaultReason.
Bits: 32..40
Sourcepub const fn set_fr_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_fr_checked(&mut self, value: u8) -> Result<(), ()>
Fault Reason code, full-register bits 103:96. See FaultReason.
Bits: 32..40
Sourcepub const fn with_at_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_at_checked(self, value: u8) -> Result<Self, ()>
Address Type (2 bits).
Bits: 60..62
Sourcepub const fn set_at_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_at_checked(&mut self, value: u8) -> Result<(), ()>
Address Type (2 bits).
Bits: 60..62
Sourcepub const fn t(&self) -> bool
pub const fn t(&self) -> bool
Type — 0 = write request, 1 = read request (or other non-write).
Bits: 62..63
Sourcepub const fn with_t_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_t_checked(self, value: bool) -> Result<Self, ()>
Type — 0 = write request, 1 = read request (or other non-write).
Bits: 62..63
Sourcepub const fn with_t(self, value: bool) -> Self
pub const fn with_t(self, value: bool) -> Self
Type — 0 = write request, 1 = read request (or other non-write).
Bits: 62..63
Sourcepub const fn set_t(&mut self, value: bool)
pub const fn set_t(&mut self, value: bool)
Type — 0 = write request, 1 = read request (or other non-write).
Bits: 62..63
Sourcepub const fn set_t_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_t_checked(&mut self, value: bool) -> Result<(), ()>
Type — 0 = write request, 1 = read request (or other non-write).
Bits: 62..63
Sourcepub const fn f(&self) -> bool
pub const fn f(&self) -> bool
Fault — 1 = this record contains a valid fault. RW1C (write 1 to clear).
Bits: 63..64
Sourcepub const fn with_f_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_f_checked(self, value: bool) -> Result<Self, ()>
Fault — 1 = this record contains a valid fault. RW1C (write 1 to clear).
Bits: 63..64
Sourcepub const fn with_f(self, value: bool) -> Self
pub const fn with_f(self, value: bool) -> Self
Fault — 1 = this record contains a valid fault. RW1C (write 1 to clear).
Bits: 63..64