pub struct SecureConfigurationRegister(/* private fields */);Expand description
The layout of SCR_EL3.
Implementations§
Source§impl SecureConfigurationRegister
impl SecureConfigurationRegister
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 HXEN_SHIFT: usize = 38
pub const HXEN_SHIFT: usize = 38
Bit shift (i.e., the low bit) of hxen.
Sourcepub const ADEN_SHIFT: usize = 37
pub const ADEN_SHIFT: usize = 37
Bit shift (i.e., the low bit) of aden.
Sourcepub const ENAS0_MASK: u64
pub const ENAS0_MASK: u64
Unshifted bitmask of enas0.
Sourcepub const ENAS0_SHIFT: usize = 36
pub const ENAS0_SHIFT: usize = 36
Bit shift (i.e., the low bit) of enas0.
Sourcepub const AMVOFFEN_MASK: u64
pub const AMVOFFEN_MASK: u64
Unshifted bitmask of amvoffen.
Sourcepub const AMVOFFEN_SHIFT: usize = 35
pub const AMVOFFEN_SHIFT: usize = 35
Bit shift (i.e., the low bit) of amvoffen.
Sourcepub const TWEDEL_MASK: u64
pub const TWEDEL_MASK: u64
Unshifted bitmask of twedel.
Sourcepub const TWEDEL_SHIFT: usize = 30
pub const TWEDEL_SHIFT: usize = 30
Bit shift (i.e., the low bit) of twedel.
Sourcepub const TWEDEN_MASK: u64
pub const TWEDEN_MASK: u64
Unshifted bitmask of tweden.
Sourcepub const TWEDEN_SHIFT: usize = 29
pub const TWEDEN_SHIFT: usize = 29
Bit shift (i.e., the low bit) of tweden.
Sourcepub const ECVEN_MASK: u64
pub const ECVEN_MASK: u64
Unshifted bitmask of ecven.
Sourcepub const ECVEN_SHIFT: usize = 28
pub const ECVEN_SHIFT: usize = 28
Bit shift (i.e., the low bit) of ecven.
Sourcepub const FGTEN_MASK: u64
pub const FGTEN_MASK: u64
Unshifted bitmask of fgten.
Sourcepub const FGTEN_SHIFT: usize = 27
pub const FGTEN_SHIFT: usize = 27
Bit shift (i.e., the low bit) of fgten.
Sourcepub const ENSCXT_MASK: u64
pub const ENSCXT_MASK: u64
Unshifted bitmask of enscxt.
Sourcepub const ENSCXT_SHIFT: usize = 25
pub const ENSCXT_SHIFT: usize = 25
Bit shift (i.e., the low bit) of enscxt.
Sourcepub const FIEN_SHIFT: usize = 21
pub const FIEN_SHIFT: usize = 21
Bit shift (i.e., the low bit) of fien.
Sourcepub const NMEA_SHIFT: usize = 20
pub const NMEA_SHIFT: usize = 20
Bit shift (i.e., the low bit) of nmea.
Sourcepub const EASE_SHIFT: usize = 19
pub const EASE_SHIFT: usize = 19
Bit shift (i.e., the low bit) of ease.
Sourcepub const EEL2_SHIFT: usize = 18
pub const EEL2_SHIFT: usize = 18
Bit shift (i.e., the low bit) of eel2.
Sourcepub const TERR_SHIFT: usize = 15
pub const TERR_SHIFT: usize = 15
Bit shift (i.e., the low bit) of terr.
Sourcepub const TLOR_SHIFT: usize = 14
pub const TLOR_SHIFT: usize = 14
Bit shift (i.e., the low bit) of tlor.
Sourcepub const FIELDS: [FieldMetadata<u64>; 29]
pub const FIELDS: [FieldMetadata<u64>; 29]
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_hxen(&mut self, value: bool) -> &mut Self
pub const fn set_hxen(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister38.
Sourcepub const fn set_aden(&mut self, value: bool) -> &mut Self
pub const fn set_aden(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister37.
Sourcepub const fn set_enas0(&mut self, value: bool) -> &mut Self
pub const fn set_enas0(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister36.
Sourcepub const fn set_amvoffen(&mut self, value: bool) -> &mut Self
pub const fn set_amvoffen(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister35.
Sourcepub const fn set_twedel(&mut self, value: u8) -> &mut Self
pub const fn set_twedel(&mut self, value: u8) -> &mut Self
Sets the value of SecureConfigurationRegister[33:30].
Sourcepub const fn set_tweden(&mut self, value: bool) -> &mut Self
pub const fn set_tweden(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister29.
Sourcepub const fn set_ecven(&mut self, value: bool) -> &mut Self
pub const fn set_ecven(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister28.
Sourcepub const fn set_fgten(&mut self, value: bool) -> &mut Self
pub const fn set_fgten(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister27.
Sourcepub const fn set_ata(&mut self, value: bool) -> &mut Self
pub const fn set_ata(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister26.
Sourcepub const fn set_enscxt(&mut self, value: bool) -> &mut Self
pub const fn set_enscxt(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister25.
Sourcepub const fn set_fien(&mut self, value: bool) -> &mut Self
pub const fn set_fien(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister21.
Sourcepub const fn set_nmea(&mut self, value: bool) -> &mut Self
pub const fn set_nmea(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister20.
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 SecureConfigurationRegister19.
Sourcepub const fn set_eel2(&mut self, value: bool) -> &mut Self
pub const fn set_eel2(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister18.
Sourcepub const fn set_api(&mut self, value: bool) -> &mut Self
pub const fn set_api(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister17.
Sourcepub const fn set_apk(&mut self, value: bool) -> &mut Self
pub const fn set_apk(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister16.
Sourcepub const fn set_terr(&mut self, value: bool) -> &mut Self
pub const fn set_terr(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister15.
Sourcepub const fn set_tlor(&mut self, value: bool) -> &mut Self
pub const fn set_tlor(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister14.
Sourcepub const fn set_twe(&mut self, value: bool) -> &mut Self
pub const fn set_twe(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister13.
Sourcepub const fn set_twi(&mut self, value: bool) -> &mut Self
pub const fn set_twi(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister12.
Sourcepub const fn set_st(&mut self, value: bool) -> &mut Self
pub const fn set_st(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister11.
Sourcepub const fn set_rw(&mut self, value: bool) -> &mut Self
pub const fn set_rw(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister10.
Sourcepub const fn set_sif(&mut self, value: bool) -> &mut Self
pub const fn set_sif(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister9.
Sourcepub const fn set_hce(&mut self, value: bool) -> &mut Self
pub const fn set_hce(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister8.
Sourcepub const fn set_smd(&mut self, value: bool) -> &mut Self
pub const fn set_smd(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister7.
Sourcepub const fn set_ea(&mut self, value: bool) -> &mut Self
pub const fn set_ea(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister3.
Sourcepub const fn set_fiq(&mut self, value: bool) -> &mut Self
pub const fn set_fiq(&mut self, value: bool) -> &mut Self
Sets the value of SecureConfigurationRegister2.
Trait Implementations§
Source§impl Binary for SecureConfigurationRegister
impl Binary for SecureConfigurationRegister
Source§impl Clone for SecureConfigurationRegister
impl Clone for SecureConfigurationRegister
Source§fn clone(&self) -> SecureConfigurationRegister
fn clone(&self) -> SecureConfigurationRegister
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SecureConfigurationRegister
Source§impl Debug for SecureConfigurationRegister
impl Debug for SecureConfigurationRegister
Source§impl Default for SecureConfigurationRegister
impl Default for SecureConfigurationRegister
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 SecureConfigurationRegister
Source§impl From<SecureConfigurationRegister> for u64
impl From<SecureConfigurationRegister> for u64
Source§fn from(value: SecureConfigurationRegister) -> Self
fn from(value: SecureConfigurationRegister) -> Self
Source§impl From<u64> for SecureConfigurationRegister
impl From<u64> for SecureConfigurationRegister
Source§impl IntoIterator for SecureConfigurationRegister
impl IntoIterator for SecureConfigurationRegister
Source§impl<'a> IntoIterator for &'a SecureConfigurationRegister
impl<'a> IntoIterator for &'a SecureConfigurationRegister
Source§impl LowerHex for SecureConfigurationRegister
impl LowerHex for SecureConfigurationRegister
Source§impl Octal for SecureConfigurationRegister
impl Octal for SecureConfigurationRegister
Source§impl PartialEq for SecureConfigurationRegister
impl PartialEq for SecureConfigurationRegister
impl StructuralPartialEq for SecureConfigurationRegister
Auto Trait Implementations§
impl Freeze for SecureConfigurationRegister
impl RefUnwindSafe for SecureConfigurationRegister
impl Send for SecureConfigurationRegister
impl Sync for SecureConfigurationRegister
impl Unpin for SecureConfigurationRegister
impl UnsafeUnpin for SecureConfigurationRegister
impl UnwindSafe for SecureConfigurationRegister
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)