pub struct DebugFeatureRegister0(/* private fields */);Expand description
The layout of ID_AA64DFR0_EL1.
Implementations§
Source§impl DebugFeatureRegister0
impl DebugFeatureRegister0
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const HPMN0_MASK: u64
pub const HPMN0_MASK: u64
Unshifted bitmask of hpmn0.
Sourcepub const HPMN0_SHIFT: usize = 60
pub const HPMN0_SHIFT: usize = 60
Bit shift (i.e., the low bit) of hpmn0.
Sourcepub const EXT_TRC_BUFF_MASK: u64
pub const EXT_TRC_BUFF_MASK: u64
Unshifted bitmask of ext_trc_buff.
Sourcepub const EXT_TRC_BUFF_SHIFT: usize = 56
pub const EXT_TRC_BUFF_SHIFT: usize = 56
Bit shift (i.e., the low bit) of ext_trc_buff.
Sourcepub const BRBE_SHIFT: usize = 52
pub const BRBE_SHIFT: usize = 52
Bit shift (i.e., the low bit) of brbe.
Sourcepub const MTPMU_MASK: u64
pub const MTPMU_MASK: u64
Unshifted bitmask of mtpmu.
Sourcepub const MTPMU_SHIFT: usize = 48
pub const MTPMU_SHIFT: usize = 48
Bit shift (i.e., the low bit) of mtpmu.
Sourcepub const TRACE_BUFFER_MASK: u64
pub const TRACE_BUFFER_MASK: u64
Unshifted bitmask of trace_buffer.
Sourcepub const TRACE_BUFFER_SHIFT: usize = 44
pub const TRACE_BUFFER_SHIFT: usize = 44
Bit shift (i.e., the low bit) of trace_buffer.
Sourcepub const TRACE_FILT_MASK: u64
pub const TRACE_FILT_MASK: u64
Unshifted bitmask of trace_filt.
Sourcepub const TRACE_FILT_SHIFT: usize = 40
pub const TRACE_FILT_SHIFT: usize = 40
Bit shift (i.e., the low bit) of trace_filt.
Sourcepub const DOUBLE_LOCK_MASK: u64
pub const DOUBLE_LOCK_MASK: u64
Unshifted bitmask of double_lock.
Sourcepub const DOUBLE_LOCK_SHIFT: usize = 36
pub const DOUBLE_LOCK_SHIFT: usize = 36
Bit shift (i.e., the low bit) of double_lock.
Sourcepub const PMS_VER_MASK: u64
pub const PMS_VER_MASK: u64
Unshifted bitmask of pms_ver.
Sourcepub const PMS_VER_SHIFT: usize = 32
pub const PMS_VER_SHIFT: usize = 32
Bit shift (i.e., the low bit) of pms_ver.
Sourcepub const CTX_CMPS_MASK: u64
pub const CTX_CMPS_MASK: u64
Unshifted bitmask of ctx_cmps.
Sourcepub const CTX_CMPS_SHIFT: usize = 28
pub const CTX_CMPS_SHIFT: usize = 28
Bit shift (i.e., the low bit) of ctx_cmps.
Sourcepub const SEBEP_MASK: u64
pub const SEBEP_MASK: u64
Unshifted bitmask of sebep.
Sourcepub const SEBEP_SHIFT: usize = 24
pub const SEBEP_SHIFT: usize = 24
Bit shift (i.e., the low bit) of sebep.
Sourcepub const WRPS_SHIFT: usize = 20
pub const WRPS_SHIFT: usize = 20
Bit shift (i.e., the low bit) of wrps.
Sourcepub const PMSS_SHIFT: usize = 16
pub const PMSS_SHIFT: usize = 16
Bit shift (i.e., the low bit) of pmss.
Sourcepub const BRPS_SHIFT: usize = 12
pub const BRPS_SHIFT: usize = 12
Bit shift (i.e., the low bit) of brps.
Sourcepub const PMU_VER_MASK: u64
pub const PMU_VER_MASK: u64
Unshifted bitmask of pmu_ver.
Sourcepub const PMU_VER_SHIFT: usize = 8
pub const PMU_VER_SHIFT: usize = 8
Bit shift (i.e., the low bit) of pmu_ver.
Sourcepub const TRACE_VER_MASK: u64
pub const TRACE_VER_MASK: u64
Unshifted bitmask of trace_ver.
Sourcepub const TRACE_VER_SHIFT: usize = 4
pub const TRACE_VER_SHIFT: usize = 4
Bit shift (i.e., the low bit) of trace_ver.
Sourcepub const DEBUG_VER_MASK: u64
pub const DEBUG_VER_MASK: u64
Unshifted bitmask of debug_ver.
Sourcepub const DEBUG_VER_SHIFT: usize = 0
pub const DEBUG_VER_SHIFT: usize = 0
Bit shift (i.e., the low bit) of debug_ver.
Sourcepub const FIELDS: [FieldMetadata<u64>; 16]
pub const FIELDS: [FieldMetadata<u64>; 16]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
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).
pub const fn bits(self) -> u64
Sourcepub const fn set_hpmn0(&mut self, value: u8) -> &mut Self
pub const fn set_hpmn0(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[63:60].
Sourcepub const fn ext_trc_buff(&self) -> u8
pub const fn ext_trc_buff(&self) -> u8
The value of DebugFeatureRegister0[59:56].
Sourcepub const fn set_ext_trc_buff(&mut self, value: u8) -> &mut Self
pub const fn set_ext_trc_buff(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[59:56].
Sourcepub const fn set_brbe(&mut self, value: u8) -> &mut Self
pub const fn set_brbe(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[55:52].
Sourcepub const fn set_mtpmu(&mut self, value: u8) -> &mut Self
pub const fn set_mtpmu(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[51:48].
Sourcepub const fn trace_buffer(&self) -> u8
pub const fn trace_buffer(&self) -> u8
The value of DebugFeatureRegister0[47:44].
Sourcepub const fn set_trace_buffer(&mut self, value: u8) -> &mut Self
pub const fn set_trace_buffer(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[47:44].
Sourcepub const fn trace_filt(&self) -> u8
pub const fn trace_filt(&self) -> u8
The value of DebugFeatureRegister0[43:40].
Sourcepub const fn set_trace_filt(&mut self, value: u8) -> &mut Self
pub const fn set_trace_filt(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[43:40].
Sourcepub const fn double_lock(&self) -> u8
pub const fn double_lock(&self) -> u8
The value of DebugFeatureRegister0[39:36].
Sourcepub const fn set_double_lock(&mut self, value: u8) -> &mut Self
pub const fn set_double_lock(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[39:36].
Sourcepub const fn set_pms_ver(&mut self, value: u8) -> &mut Self
pub const fn set_pms_ver(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[35:32].
Sourcepub const fn set_ctx_cmps(&mut self, value: u8) -> &mut Self
pub const fn set_ctx_cmps(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[31:28].
Sourcepub const fn set_sebep(&mut self, value: u8) -> &mut Self
pub const fn set_sebep(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[27:24].
Sourcepub const fn set_wrps(&mut self, value: u8) -> &mut Self
pub const fn set_wrps(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[23:20].
Sourcepub const fn set_pmss(&mut self, value: u8) -> &mut Self
pub const fn set_pmss(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[19:16].
Sourcepub const fn set_brps(&mut self, value: u8) -> &mut Self
pub const fn set_brps(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[15:12].
Sourcepub const fn set_pmu_ver(&mut self, value: u8) -> &mut Self
pub const fn set_pmu_ver(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[11:8].
Sourcepub const fn set_trace_ver(&mut self, value: u8) -> &mut Self
pub const fn set_trace_ver(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[7:4].
Sourcepub const fn set_debug_ver(&mut self, value: u8) -> &mut Self
pub const fn set_debug_ver(&mut self, value: u8) -> &mut Self
Sets the value of DebugFeatureRegister0[3:0].
Trait Implementations§
Source§impl Binary for DebugFeatureRegister0
impl Binary for DebugFeatureRegister0
Source§impl Clone for DebugFeatureRegister0
impl Clone for DebugFeatureRegister0
impl Copy for DebugFeatureRegister0
Source§impl Debug for DebugFeatureRegister0
impl Debug for DebugFeatureRegister0
Source§impl Default for DebugFeatureRegister0
impl Default for DebugFeatureRegister0
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for DebugFeatureRegister0
Source§impl From<DebugFeatureRegister0> for u64
impl From<DebugFeatureRegister0> for u64
Source§fn from(value: DebugFeatureRegister0) -> Self
fn from(value: DebugFeatureRegister0) -> Self
Source§impl From<u64> for DebugFeatureRegister0
impl From<u64> for DebugFeatureRegister0
Source§impl IntoIterator for DebugFeatureRegister0
impl IntoIterator for DebugFeatureRegister0
Source§impl<'a> IntoIterator for &'a DebugFeatureRegister0
impl<'a> IntoIterator for &'a DebugFeatureRegister0
Source§impl LowerHex for DebugFeatureRegister0
impl LowerHex for DebugFeatureRegister0
Source§impl Octal for DebugFeatureRegister0
impl Octal for DebugFeatureRegister0
Source§impl PartialEq for DebugFeatureRegister0
impl PartialEq for DebugFeatureRegister0
impl StructuralPartialEq for DebugFeatureRegister0
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 Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DTwhere
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DTwhere
ST: ?Sized,
DT: ?Sized,
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)