Skip to main content

InterruptCacheInvalidateDw0Dw1

Struct InterruptCacheInvalidateDw0Dw1 

Source
pub struct InterruptCacheInvalidateDw0Dw1(/* private fields */);
Expand description

Interrupt Entry Cache Invalidation Descriptor (type 0x04, §6.5.2.7).

Bits [3:0]   = Type (0x04)
Bit  [4]     = Granularity (0=global, 1=index-selective)
Bits [8:5]   = reserved
Bits [11:9]  = Type[6:4] (zero)
Bits [26:12] = reserved
Bits [31:27] = IM (Index Mask, for index-selective)
Bits [47:32] = IIDX (Interrupt Index, for index-selective)
Bits [63:48] = reserved
Bits [127:64]= reserved

Implementations§

Source§

impl InterruptCacheInvalidateDw0Dw1

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 desc_type(&self) -> u8

Descriptor type (must be 0x04).

Bits: 0..4

Source

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

Descriptor type (must be 0x04).

Bits: 0..4

Source

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

Descriptor type (must be 0x04).

Bits: 0..4

Source

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

Descriptor type (must be 0x04).

Bits: 0..4

Source

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

Descriptor type (must be 0x04).

Bits: 0..4

Source

pub const fn granularity(&self) -> bool

Invalidation granularity: 0=global, 1=index-selective.

Bits: 4..5

Source

pub const fn with_granularity_checked(self, value: bool) -> Result<Self, ()>

Invalidation granularity: 0=global, 1=index-selective.

Bits: 4..5

Source

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

Invalidation granularity: 0=global, 1=index-selective.

Bits: 4..5

Source

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

Invalidation granularity: 0=global, 1=index-selective.

Bits: 4..5

Source

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

Invalidation granularity: 0=global, 1=index-selective.

Bits: 4..5

Source

pub const fn type_hi(&self) -> u8

Upper three bits of the descriptor type.

Bits: 9..12

Source

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

Upper three bits of the descriptor type.

Bits: 9..12

Source

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

Upper three bits of the descriptor type.

Bits: 9..12

Source

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

Upper three bits of the descriptor type.

Bits: 9..12

Source

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

Upper three bits of the descriptor type.

Bits: 9..12

Source

pub const fn im(&self) -> u8

Index Mask (5 bits, for index-selective invalidation).

Bits: 27..32

Source

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

Index Mask (5 bits, for index-selective invalidation).

Bits: 27..32

Source

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

Index Mask (5 bits, for index-selective invalidation).

Bits: 27..32

Source

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

Index Mask (5 bits, for index-selective invalidation).

Bits: 27..32

Source

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

Index Mask (5 bits, for index-selective invalidation).

Bits: 27..32

Source

pub const fn iidx(&self) -> u16

Interrupt Index (16 bits, for index-selective invalidation).

Bits: 32..48

Source

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

Interrupt Index (16 bits, for index-selective invalidation).

Bits: 32..48

Source

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

Interrupt Index (16 bits, for index-selective invalidation).

Bits: 32..48

Source

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

Interrupt Index (16 bits, for index-selective invalidation).

Bits: 32..48

Source

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

Interrupt Index (16 bits, for index-selective invalidation).

Bits: 32..48

Trait Implementations§

Source§

impl Clone for InterruptCacheInvalidateDw0Dw1

Source§

fn clone(&self) -> InterruptCacheInvalidateDw0Dw1

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 InterruptCacheInvalidateDw0Dw1

Source§

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

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

impl Default for InterruptCacheInvalidateDw0Dw1

Source§

fn default() -> Self

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

impl From<InterruptCacheInvalidateDw0Dw1> for u64

Source§

fn from(v: InterruptCacheInvalidateDw0Dw1) -> u64

Converts to this type from the input type.
Source§

impl From<u64> for InterruptCacheInvalidateDw0Dw1

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl Inspect for InterruptCacheInvalidateDw0Dw1

Source§

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

Inspects the object.
Source§

impl Copy for InterruptCacheInvalidateDw0Dw1

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