Skip to main content

DebugFeatureRegister0

Struct DebugFeatureRegister0 

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

The layout of ID_AA64DFR0_EL1.

Implementations§

Source§

impl DebugFeatureRegister0

Source

pub const RSVD1_MASK: u64

Mask of all reserved-as-1 bits.

Source

pub const RSVD0_MASK: u64

Mask of all reserved-as-0 bits.

Source

pub const DEFAULT: u64

The default value of the layout, combining all field defaults and reserved-as values.

Source

pub const HPMN0_MASK: u64

Unshifted bitmask of hpmn0.

Source

pub const HPMN0_SHIFT: usize = 60

Bit shift (i.e., the low bit) of hpmn0.

Source

pub const EXT_TRC_BUFF_MASK: u64

Unshifted bitmask of ext_trc_buff.

Source

pub const EXT_TRC_BUFF_SHIFT: usize = 56

Bit shift (i.e., the low bit) of ext_trc_buff.

Source

pub const BRBE_MASK: u64

Unshifted bitmask of brbe.

Source

pub const BRBE_SHIFT: usize = 52

Bit shift (i.e., the low bit) of brbe.

Source

pub const MTPMU_MASK: u64

Unshifted bitmask of mtpmu.

Source

pub const MTPMU_SHIFT: usize = 48

Bit shift (i.e., the low bit) of mtpmu.

Source

pub const TRACE_BUFFER_MASK: u64

Unshifted bitmask of trace_buffer.

Source

pub const TRACE_BUFFER_SHIFT: usize = 44

Bit shift (i.e., the low bit) of trace_buffer.

Source

pub const TRACE_FILT_MASK: u64

Unshifted bitmask of trace_filt.

Source

pub const TRACE_FILT_SHIFT: usize = 40

Bit shift (i.e., the low bit) of trace_filt.

Source

pub const DOUBLE_LOCK_MASK: u64

Unshifted bitmask of double_lock.

Source

pub const DOUBLE_LOCK_SHIFT: usize = 36

Bit shift (i.e., the low bit) of double_lock.

Source

pub const PMS_VER_MASK: u64

Unshifted bitmask of pms_ver.

Source

pub const PMS_VER_SHIFT: usize = 32

Bit shift (i.e., the low bit) of pms_ver.

Source

pub const CTX_CMPS_MASK: u64

Unshifted bitmask of ctx_cmps.

Source

pub const CTX_CMPS_SHIFT: usize = 28

Bit shift (i.e., the low bit) of ctx_cmps.

Source

pub const SEBEP_MASK: u64

Unshifted bitmask of sebep.

Source

pub const SEBEP_SHIFT: usize = 24

Bit shift (i.e., the low bit) of sebep.

Source

pub const WRPS_MASK: u64

Unshifted bitmask of wrps.

Source

pub const WRPS_SHIFT: usize = 20

Bit shift (i.e., the low bit) of wrps.

Source

pub const PMSS_MASK: u64

Unshifted bitmask of pmss.

Source

pub const PMSS_SHIFT: usize = 16

Bit shift (i.e., the low bit) of pmss.

Source

pub const BRPS_MASK: u64

Unshifted bitmask of brps.

Source

pub const BRPS_SHIFT: usize = 12

Bit shift (i.e., the low bit) of brps.

Source

pub const PMU_VER_MASK: u64

Unshifted bitmask of pmu_ver.

Source

pub const PMU_VER_SHIFT: usize = 8

Bit shift (i.e., the low bit) of pmu_ver.

Source

pub const TRACE_VER_MASK: u64

Unshifted bitmask of trace_ver.

Source

pub const TRACE_VER_SHIFT: usize = 4

Bit shift (i.e., the low bit) of trace_ver.

Source

pub const DEBUG_VER_MASK: u64

Unshifted bitmask of debug_ver.

Source

pub const DEBUG_VER_SHIFT: usize = 0

Bit shift (i.e., the low bit) of debug_ver.

Source

pub const FIELDS: [FieldMetadata<u64>; 16]

Metadata of all named fields in the layout.

Source

pub const fn new() -> Self

Creates a new instance with reserved-as-1 bits set and all other bits zeroed (i.e., with a value of Self::RSVD1_MASK).

Source

pub const fn bits(self) -> u64

Source

pub const fn hpmn0(&self) -> u8

The value of DebugFeatureRegister0[63:60].

Source

pub const fn set_hpmn0(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[63:60].

Source

pub const fn ext_trc_buff(&self) -> u8

The value of DebugFeatureRegister0[59:56].

Source

pub const fn set_ext_trc_buff(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[59:56].

Source

pub const fn brbe(&self) -> u8

The value of DebugFeatureRegister0[55:52].

Source

pub const fn set_brbe(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[55:52].

Source

pub const fn mtpmu(&self) -> u8

The value of DebugFeatureRegister0[51:48].

Source

pub const fn set_mtpmu(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[51:48].

Source

pub const fn trace_buffer(&self) -> u8

The value of DebugFeatureRegister0[47:44].

Source

pub const fn set_trace_buffer(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[47:44].

Source

pub const fn trace_filt(&self) -> u8

The value of DebugFeatureRegister0[43:40].

Source

pub const fn set_trace_filt(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[43:40].

Source

pub const fn double_lock(&self) -> u8

The value of DebugFeatureRegister0[39:36].

Source

pub const fn set_double_lock(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[39:36].

Source

pub const fn pms_ver(&self) -> u8

The value of DebugFeatureRegister0[35:32].

Source

pub const fn set_pms_ver(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[35:32].

Source

pub const fn ctx_cmps(&self) -> u8

The value of DebugFeatureRegister0[31:28].

Source

pub const fn set_ctx_cmps(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[31:28].

Source

pub const fn sebep(&self) -> u8

The value of DebugFeatureRegister0[27:24].

Source

pub const fn set_sebep(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[27:24].

Source

pub const fn wrps(&self) -> u8

The value of DebugFeatureRegister0[23:20].

Source

pub const fn set_wrps(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[23:20].

Source

pub const fn pmss(&self) -> u8

The value of DebugFeatureRegister0[19:16].

Source

pub const fn set_pmss(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[19:16].

Source

pub const fn brps(&self) -> u8

The value of DebugFeatureRegister0[15:12].

Source

pub const fn set_brps(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[15:12].

Source

pub const fn pmu_ver(&self) -> u8

The value of DebugFeatureRegister0[11:8].

Source

pub const fn set_pmu_ver(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[11:8].

Source

pub const fn trace_ver(&self) -> u8

The value of DebugFeatureRegister0[7:4].

Source

pub const fn set_trace_ver(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[7:4].

Source

pub const fn debug_ver(&self) -> u8

The value of DebugFeatureRegister0[3:0].

Source

pub const fn set_debug_ver(&mut self, value: u8) -> &mut Self

Sets the value of DebugFeatureRegister0[3:0].

Source§

impl DebugFeatureRegister0

Source

pub fn iter(&self) -> DebugFeatureRegister0Iter

Returns an iterator over (metadata, value) pairs for each field.

Trait Implementations§

Source§

impl Binary for DebugFeatureRegister0

Source§

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

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

impl Clone for DebugFeatureRegister0

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for DebugFeatureRegister0

Source§

impl Debug for DebugFeatureRegister0

Source§

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

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

impl Default for DebugFeatureRegister0

Source§

fn default() -> Self

Returns an instance with the default bits set (i.e,. with a value of Self::DEFAULT.

Source§

impl Eq for DebugFeatureRegister0

Source§

impl From<DebugFeatureRegister0> for u64

Source§

fn from(value: DebugFeatureRegister0) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for DebugFeatureRegister0

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for DebugFeatureRegister0

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = DebugFeatureRegister0Iter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a> IntoIterator for &'a DebugFeatureRegister0

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = DebugFeatureRegister0Iter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl LowerHex for DebugFeatureRegister0

Source§

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

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

impl Octal for DebugFeatureRegister0

Source§

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

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

impl PartialEq for DebugFeatureRegister0

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DebugFeatureRegister0

Source§

impl UpperHex for DebugFeatureRegister0

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for DebugFeatureRegister0

§

impl RefUnwindSafe for DebugFeatureRegister0

§

impl Send for DebugFeatureRegister0

§

impl Sync for DebugFeatureRegister0

§

impl Unpin for DebugFeatureRegister0

§

impl UnsafeUnpin for DebugFeatureRegister0

§

impl UnwindSafe for DebugFeatureRegister0

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

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

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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<Layout, Base> LayoutOver<Base> for Layout
where Layout: Copy + From<Base> + Into<Base>,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

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

§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.