Skip to main content

SecureConfigurationRegister

Struct SecureConfigurationRegister 

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

The layout of SCR_EL3.

Implementations§

Source§

impl SecureConfigurationRegister

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 HXEN_MASK: u64

Unshifted bitmask of hxen.

Source

pub const HXEN_SHIFT: usize = 38

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

Source

pub const ADEN_MASK: u64

Unshifted bitmask of aden.

Source

pub const ADEN_SHIFT: usize = 37

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

Source

pub const ENAS0_MASK: u64

Unshifted bitmask of enas0.

Source

pub const ENAS0_SHIFT: usize = 36

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

Source

pub const AMVOFFEN_MASK: u64

Unshifted bitmask of amvoffen.

Source

pub const AMVOFFEN_SHIFT: usize = 35

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

Source

pub const TWEDEL_MASK: u64

Unshifted bitmask of twedel.

Source

pub const TWEDEL_SHIFT: usize = 30

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

Source

pub const TWEDEN_MASK: u64

Unshifted bitmask of tweden.

Source

pub const TWEDEN_SHIFT: usize = 29

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

Source

pub const ECVEN_MASK: u64

Unshifted bitmask of ecven.

Source

pub const ECVEN_SHIFT: usize = 28

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

Source

pub const FGTEN_MASK: u64

Unshifted bitmask of fgten.

Source

pub const FGTEN_SHIFT: usize = 27

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

Source

pub const ATA_MASK: u64

Unshifted bitmask of ata.

Source

pub const ATA_SHIFT: usize = 26

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

Source

pub const ENSCXT_MASK: u64

Unshifted bitmask of enscxt.

Source

pub const ENSCXT_SHIFT: usize = 25

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

Source

pub const FIEN_MASK: u64

Unshifted bitmask of fien.

Source

pub const FIEN_SHIFT: usize = 21

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

Source

pub const NMEA_MASK: u64

Unshifted bitmask of nmea.

Source

pub const NMEA_SHIFT: usize = 20

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

Source

pub const EASE_MASK: u64

Unshifted bitmask of ease.

Source

pub const EASE_SHIFT: usize = 19

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

Source

pub const EEL2_MASK: u64

Unshifted bitmask of eel2.

Source

pub const EEL2_SHIFT: usize = 18

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

Source

pub const API_MASK: u64

Unshifted bitmask of api.

Source

pub const API_SHIFT: usize = 17

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

Source

pub const APK_MASK: u64

Unshifted bitmask of apk.

Source

pub const APK_SHIFT: usize = 16

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

Source

pub const TERR_MASK: u64

Unshifted bitmask of terr.

Source

pub const TERR_SHIFT: usize = 15

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

Source

pub const TLOR_MASK: u64

Unshifted bitmask of tlor.

Source

pub const TLOR_SHIFT: usize = 14

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

Source

pub const TWE_MASK: u64

Unshifted bitmask of twe.

Source

pub const TWE_SHIFT: usize = 13

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

Source

pub const TWI_MASK: u64

Unshifted bitmask of twi.

Source

pub const TWI_SHIFT: usize = 12

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

Source

pub const ST_MASK: u64

Unshifted bitmask of st.

Source

pub const ST_SHIFT: usize = 11

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

Source

pub const RW_MASK: u64

Unshifted bitmask of rw.

Source

pub const RW_SHIFT: usize = 10

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

Source

pub const SIF_MASK: u64

Unshifted bitmask of sif.

Source

pub const SIF_SHIFT: usize = 9

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

Source

pub const HCE_MASK: u64

Unshifted bitmask of hce.

Source

pub const HCE_SHIFT: usize = 8

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

Source

pub const SMD_MASK: u64

Unshifted bitmask of smd.

Source

pub const SMD_SHIFT: usize = 7

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

Source

pub const EA_MASK: u64

Unshifted bitmask of ea.

Source

pub const EA_SHIFT: usize = 3

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

Source

pub const FIQ_MASK: u64

Unshifted bitmask of fiq.

Source

pub const FIQ_SHIFT: usize = 2

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

Source

pub const IRQ_MASK: u64

Unshifted bitmask of irq.

Source

pub const IRQ_SHIFT: usize = 1

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

Source

pub const NS_MASK: u64

Unshifted bitmask of ns.

Source

pub const NS_SHIFT: usize = 0

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

Source

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

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 hxen(&self) -> bool

The value of SecureConfigurationRegister38.

Source

pub const fn set_hxen(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister38.

Source

pub const fn aden(&self) -> bool

The value of SecureConfigurationRegister37.

Source

pub const fn set_aden(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister37.

Source

pub const fn enas0(&self) -> bool

The value of SecureConfigurationRegister36.

Source

pub const fn set_enas0(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister36.

Source

pub const fn amvoffen(&self) -> bool

The value of SecureConfigurationRegister35.

Source

pub const fn set_amvoffen(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister35.

Source

pub const fn twedel(&self) -> u8

The value of SecureConfigurationRegister[33:30].

Source

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

Sets the value of SecureConfigurationRegister[33:30].

Source

pub const fn tweden(&self) -> bool

The value of SecureConfigurationRegister29.

Source

pub const fn set_tweden(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister29.

Source

pub const fn ecven(&self) -> bool

The value of SecureConfigurationRegister28.

Source

pub const fn set_ecven(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister28.

Source

pub const fn fgten(&self) -> bool

The value of SecureConfigurationRegister27.

Source

pub const fn set_fgten(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister27.

Source

pub const fn ata(&self) -> bool

The value of SecureConfigurationRegister26.

Source

pub const fn set_ata(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister26.

Source

pub const fn enscxt(&self) -> bool

The value of SecureConfigurationRegister25.

Source

pub const fn set_enscxt(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister25.

Source

pub const fn fien(&self) -> bool

The value of SecureConfigurationRegister21.

Source

pub const fn set_fien(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister21.

Source

pub const fn nmea(&self) -> bool

The value of SecureConfigurationRegister20.

Source

pub const fn set_nmea(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister20.

Source

pub const fn ease(&self) -> bool

The value of SecureConfigurationRegister19.

Source

pub const fn set_ease(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister19.

Source

pub const fn eel2(&self) -> bool

The value of SecureConfigurationRegister18.

Source

pub const fn set_eel2(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister18.

Source

pub const fn api(&self) -> bool

The value of SecureConfigurationRegister17.

Source

pub const fn set_api(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister17.

Source

pub const fn apk(&self) -> bool

The value of SecureConfigurationRegister16.

Source

pub const fn set_apk(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister16.

Source

pub const fn terr(&self) -> bool

The value of SecureConfigurationRegister15.

Source

pub const fn set_terr(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister15.

Source

pub const fn tlor(&self) -> bool

The value of SecureConfigurationRegister14.

Source

pub const fn set_tlor(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister14.

Source

pub const fn twe(&self) -> bool

The value of SecureConfigurationRegister13.

Source

pub const fn set_twe(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister13.

Source

pub const fn twi(&self) -> bool

The value of SecureConfigurationRegister12.

Source

pub const fn set_twi(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister12.

Source

pub const fn st(&self) -> bool

The value of SecureConfigurationRegister11.

Source

pub const fn set_st(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister11.

Source

pub const fn rw(&self) -> bool

The value of SecureConfigurationRegister10.

Source

pub const fn set_rw(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister10.

Source

pub const fn sif(&self) -> bool

The value of SecureConfigurationRegister9.

Source

pub const fn set_sif(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister9.

Source

pub const fn hce(&self) -> bool

The value of SecureConfigurationRegister8.

Source

pub const fn set_hce(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister8.

Source

pub const fn smd(&self) -> bool

The value of SecureConfigurationRegister7.

Source

pub const fn set_smd(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister7.

Source

pub const fn ea(&self) -> bool

The value of SecureConfigurationRegister3.

Source

pub const fn set_ea(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister3.

Source

pub const fn fiq(&self) -> bool

The value of SecureConfigurationRegister2.

Source

pub const fn set_fiq(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister2.

Source

pub const fn irq(&self) -> bool

The value of SecureConfigurationRegister1.

Source

pub const fn set_irq(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister1.

Source

pub const fn ns(&self) -> bool

The value of SecureConfigurationRegister0.

Source

pub const fn set_ns(&mut self, value: bool) -> &mut Self

Sets the value of SecureConfigurationRegister0.

Source§

impl SecureConfigurationRegister

Source

pub fn iter(&self) -> SecureConfigurationRegisterIter

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

Trait Implementations§

Source§

impl Binary for SecureConfigurationRegister

Source§

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

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

impl Clone for SecureConfigurationRegister

Source§

fn clone(&self) -> SecureConfigurationRegister

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 SecureConfigurationRegister

Source§

impl Debug for SecureConfigurationRegister

Source§

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

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

impl Default for SecureConfigurationRegister

Source§

fn default() -> Self

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

Source§

impl Eq for SecureConfigurationRegister

Source§

impl From<SecureConfigurationRegister> for u64

Source§

fn from(value: SecureConfigurationRegister) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for SecureConfigurationRegister

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for SecureConfigurationRegister

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = SecureConfigurationRegisterIter

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 SecureConfigurationRegister

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = SecureConfigurationRegisterIter

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 SecureConfigurationRegister

Source§

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

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

impl Octal for SecureConfigurationRegister

Source§

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

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

impl PartialEq for SecureConfigurationRegister

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SecureConfigurationRegister

Source§

impl UpperHex for SecureConfigurationRegister

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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
§

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>,

§

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.