pub struct SystemControlRegister2El2(/* private fields */);Expand description
The layout of SCTLR2_EL2.
Implementations§
Source§impl SystemControlRegister2El2
impl SystemControlRegister2El2
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 ENIDCP128_MASK: u64
pub const ENIDCP128_MASK: u64
Unshifted bitmask of enidcp128.
Sourcepub const ENIDCP128_SHIFT: usize = 6
pub const ENIDCP128_SHIFT: usize = 6
Bit shift (i.e., the low bit) of enidcp128.
Sourcepub const EASE_SHIFT: usize = 5
pub const EASE_SHIFT: usize = 5
Bit shift (i.e., the low bit) of ease.
Sourcepub const ENANERR_MASK: u64
pub const ENANERR_MASK: u64
Unshifted bitmask of enanerr.
Sourcepub const ENANERR_SHIFT: usize = 4
pub const ENANERR_SHIFT: usize = 4
Bit shift (i.e., the low bit) of enanerr.
Sourcepub const ENADERR_MASK: u64
pub const ENADERR_MASK: u64
Unshifted bitmask of enaderr.
Sourcepub const ENADERR_SHIFT: usize = 3
pub const ENADERR_SHIFT: usize = 3
Bit shift (i.e., the low bit) of enaderr.
Sourcepub const NMEA_SHIFT: usize = 2
pub const NMEA_SHIFT: usize = 2
Bit shift (i.e., the low bit) of nmea.
Sourcepub const EMEC_SHIFT: usize = 1
pub const EMEC_SHIFT: usize = 1
Bit shift (i.e., the low bit) of emec.
Sourcepub const FIELDS: [FieldMetadata<u64>; 6]
pub const FIELDS: [FieldMetadata<u64>; 6]
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_enidcp128(&mut self, value: bool) -> &mut Self
pub const fn set_enidcp128(&mut self, value: bool) -> &mut Self
Sets the value of SystemControlRegister2El26.
Sourcepub const fn set_ease(&mut self, value: bool) -> &mut Self
pub const fn set_ease(&mut self, value: bool) -> &mut Self
Sets the value of SystemControlRegister2El25.
Sourcepub const fn set_enanerr(&mut self, value: bool) -> &mut Self
pub const fn set_enanerr(&mut self, value: bool) -> &mut Self
Sets the value of SystemControlRegister2El24.
Sourcepub const fn set_enaderr(&mut self, value: bool) -> &mut Self
pub const fn set_enaderr(&mut self, value: bool) -> &mut Self
Sets the value of SystemControlRegister2El23.
Trait Implementations§
Source§impl Binary for SystemControlRegister2El2
impl Binary for SystemControlRegister2El2
Source§impl Clone for SystemControlRegister2El2
impl Clone for SystemControlRegister2El2
Source§fn clone(&self) -> SystemControlRegister2El2
fn clone(&self) -> SystemControlRegister2El2
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SystemControlRegister2El2
Source§impl Debug for SystemControlRegister2El2
impl Debug for SystemControlRegister2El2
Source§impl Default for SystemControlRegister2El2
impl Default for SystemControlRegister2El2
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 SystemControlRegister2El2
Source§impl From<SystemControlRegister2El2> for u64
impl From<SystemControlRegister2El2> for u64
Source§fn from(value: SystemControlRegister2El2) -> Self
fn from(value: SystemControlRegister2El2) -> Self
Source§impl From<u64> for SystemControlRegister2El2
impl From<u64> for SystemControlRegister2El2
Source§impl IntoIterator for SystemControlRegister2El2
impl IntoIterator for SystemControlRegister2El2
Source§impl<'a> IntoIterator for &'a SystemControlRegister2El2
impl<'a> IntoIterator for &'a SystemControlRegister2El2
Source§impl LowerHex for SystemControlRegister2El2
impl LowerHex for SystemControlRegister2El2
Source§impl Octal for SystemControlRegister2El2
impl Octal for SystemControlRegister2El2
Source§impl PartialEq for SystemControlRegister2El2
impl PartialEq for SystemControlRegister2El2
impl StructuralPartialEq for SystemControlRegister2El2
Auto Trait Implementations§
impl Freeze for SystemControlRegister2El2
impl RefUnwindSafe for SystemControlRegister2El2
impl Send for SystemControlRegister2El2
impl Sync for SystemControlRegister2El2
impl Unpin for SystemControlRegister2El2
impl UnsafeUnpin for SystemControlRegister2El2
impl UnwindSafe for SystemControlRegister2El2
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<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)