Skip to main content

FrcdHi

Struct FrcdHi 

Source
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

Source

pub const fn new() -> Self

Creates a new default initialized bitfield.

Source

pub const fn from_bits(bits: u64) -> Self

Convert from bits.

Source

pub const fn into_bits(self) -> u64

Convert into bits.

Source

pub const fn sid(&self) -> u16

Source ID (BDF) of the faulting device.

Bits: 0..16

Source

pub const fn with_sid_checked(self, value: u16) -> Result<Self, ()>

Source ID (BDF) of the faulting device.

Bits: 0..16

Source

pub const fn with_sid(self, value: u16) -> Self

Source ID (BDF) of the faulting device.

Bits: 0..16

Source

pub const fn set_sid(&mut self, value: u16)

Source ID (BDF) of the faulting device.

Bits: 0..16

Source

pub const fn set_sid_checked(&mut self, value: u16) -> Result<(), ()>

Source ID (BDF) of the faulting device.

Bits: 0..16

Source

pub const fn fr(&self) -> u8

Fault Reason code, full-register bits 103:96. See FaultReason.

Bits: 32..40

Source

pub const fn with_fr_checked(self, value: u8) -> Result<Self, ()>

Fault Reason code, full-register bits 103:96. See FaultReason.

Bits: 32..40

Source

pub const fn with_fr(self, value: u8) -> Self

Fault Reason code, full-register bits 103:96. See FaultReason.

Bits: 32..40

Source

pub const fn set_fr(&mut self, value: u8)

Fault Reason code, full-register bits 103:96. See FaultReason.

Bits: 32..40

Source

pub const fn set_fr_checked(&mut self, value: u8) -> Result<(), ()>

Fault Reason code, full-register bits 103:96. See FaultReason.

Bits: 32..40

Source

pub const fn at(&self) -> u8

Address Type (2 bits).

Bits: 60..62

Source

pub const fn with_at_checked(self, value: u8) -> Result<Self, ()>

Address Type (2 bits).

Bits: 60..62

Source

pub const fn with_at(self, value: u8) -> Self

Address Type (2 bits).

Bits: 60..62

Source

pub const fn set_at(&mut self, value: u8)

Address Type (2 bits).

Bits: 60..62

Source

pub const fn set_at_checked(&mut self, value: u8) -> Result<(), ()>

Address Type (2 bits).

Bits: 60..62

Source

pub const fn t(&self) -> bool

Type — 0 = write request, 1 = read request (or other non-write).

Bits: 62..63

Source

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

Source

pub const fn with_t(self, value: bool) -> Self

Type — 0 = write request, 1 = read request (or other non-write).

Bits: 62..63

Source

pub const fn set_t(&mut self, value: bool)

Type — 0 = write request, 1 = read request (or other non-write).

Bits: 62..63

Source

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

Source

pub const fn f(&self) -> bool

Fault — 1 = this record contains a valid fault. RW1C (write 1 to clear).

Bits: 63..64

Source

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

Source

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

Source

pub const fn set_f(&mut self, value: bool)

Fault — 1 = this record contains a valid fault. RW1C (write 1 to clear).

Bits: 63..64

Source

pub const fn set_f_checked(&mut self, value: bool) -> Result<(), ()>

Fault — 1 = this record contains a valid fault. RW1C (write 1 to clear).

Bits: 63..64

Trait Implementations§

Source§

impl Clone for FrcdHi

Source§

fn clone(&self) -> FrcdHi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FrcdHi

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FrcdHi

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<FrcdHi> for u64

Source§

fn from(v: FrcdHi) -> u64

Converts to this type from the input type.
Source§

impl From<u64> for FrcdHi

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl Inspect for FrcdHi

Source§

fn inspect(&self, req: Request<'_>)

Inspects the object.
Source§

impl Copy for FrcdHi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more