Struct aarch64defs::SctlrEl1

source ·
pub struct SctlrEl1(/* private fields */);
Expand description

aarch64 SCTRL_EL1

Implementations§

source§

impl SctlrEl1

source

pub const fn new() -> Self

Creates a new default initialized bitfield.

source

pub const fn from_bits(bits: u64) -> Self

Convert from bits.

source

pub const fn into_bits(self) -> u64

Convert into bits.

source

pub const fn m(&self) -> bool

Bits: 0..1

source

pub const fn with_m(self, value: bool) -> Self

Bits: 0..1

source

pub fn set_m(&mut self, value: bool)

Bits: 0..1

source

pub const fn a(&self) -> bool

Bits: 1..2

source

pub const fn with_a(self, value: bool) -> Self

Bits: 1..2

source

pub fn set_a(&mut self, value: bool)

Bits: 1..2

source

pub const fn c(&self) -> bool

Bits: 2..3

source

pub const fn with_c(self, value: bool) -> Self

Bits: 2..3

source

pub fn set_c(&mut self, value: bool)

Bits: 2..3

source

pub const fn sa(&self) -> bool

Bits: 3..4

source

pub const fn with_sa(self, value: bool) -> Self

Bits: 3..4

source

pub fn set_sa(&mut self, value: bool)

Bits: 3..4

source

pub const fn sa0(&self) -> bool

Bits: 4..5

source

pub const fn with_sa0(self, value: bool) -> Self

Bits: 4..5

source

pub fn set_sa0(&mut self, value: bool)

Bits: 4..5

source

pub const fn cp15ben(&self) -> bool

Bits: 5..6

source

pub const fn with_cp15ben(self, value: bool) -> Self

Bits: 5..6

source

pub fn set_cp15ben(&mut self, value: bool)

Bits: 5..6

source

pub const fn n_aa(&self) -> bool

Bits: 6..7

source

pub const fn with_n_aa(self, value: bool) -> Self

Bits: 6..7

source

pub fn set_n_aa(&mut self, value: bool)

Bits: 6..7

source

pub const fn itd(&self) -> bool

Bits: 7..8

source

pub const fn with_itd(self, value: bool) -> Self

Bits: 7..8

source

pub fn set_itd(&mut self, value: bool)

Bits: 7..8

source

pub const fn sed(&self) -> bool

Bits: 8..9

source

pub const fn with_sed(self, value: bool) -> Self

Bits: 8..9

source

pub fn set_sed(&mut self, value: bool)

Bits: 8..9

source

pub const fn uma(&self) -> bool

Bits: 9..10

source

pub const fn with_uma(self, value: bool) -> Self

Bits: 9..10

source

pub fn set_uma(&mut self, value: bool)

Bits: 9..10

source

pub const fn en_rctx(&self) -> bool

Bits: 10..11

source

pub const fn with_en_rctx(self, value: bool) -> Self

Bits: 10..11

source

pub fn set_en_rctx(&mut self, value: bool)

Bits: 10..11

source

pub const fn eos(&self) -> bool

Bits: 11..12

source

pub const fn with_eos(self, value: bool) -> Self

Bits: 11..12

source

pub fn set_eos(&mut self, value: bool)

Bits: 11..12

source

pub const fn i(&self) -> bool

Bits: 12..13

source

pub const fn with_i(self, value: bool) -> Self

Bits: 12..13

source

pub fn set_i(&mut self, value: bool)

Bits: 12..13

source

pub const fn en_db(&self) -> bool

Bits: 13..14

source

pub const fn with_en_db(self, value: bool) -> Self

Bits: 13..14

source

pub fn set_en_db(&mut self, value: bool)

Bits: 13..14

source

pub const fn dze(&self) -> bool

Bits: 14..15

source

pub const fn with_dze(self, value: bool) -> Self

Bits: 14..15

source

pub fn set_dze(&mut self, value: bool)

Bits: 14..15

source

pub const fn uct(&self) -> bool

Bits: 15..16

source

pub const fn with_uct(self, value: bool) -> Self

Bits: 15..16

source

pub fn set_uct(&mut self, value: bool)

Bits: 15..16

source

pub const fn n_twi(&self) -> bool

Bits: 16..17

source

pub const fn with_n_twi(self, value: bool) -> Self

Bits: 16..17

source

pub fn set_n_twi(&mut self, value: bool)

Bits: 16..17

source

pub const fn n_twe(&self) -> bool

Bits: 18..19

source

pub const fn with_n_twe(self, value: bool) -> Self

Bits: 18..19

source

pub fn set_n_twe(&mut self, value: bool)

Bits: 18..19

source

pub const fn wxn(&self) -> bool

Bits: 19..20

source

pub const fn with_wxn(self, value: bool) -> Self

Bits: 19..20

source

pub fn set_wxn(&mut self, value: bool)

Bits: 19..20

source

pub const fn tscxt(&self) -> bool

Bits: 20..21

source

pub const fn with_tscxt(self, value: bool) -> Self

Bits: 20..21

source

pub fn set_tscxt(&mut self, value: bool)

Bits: 20..21

source

pub const fn iesb(&self) -> bool

Bits: 21..22

source

pub const fn with_iesb(self, value: bool) -> Self

Bits: 21..22

source

pub fn set_iesb(&mut self, value: bool)

Bits: 21..22

source

pub const fn eis(&self) -> bool

Bits: 22..23

source

pub const fn with_eis(self, value: bool) -> Self

Bits: 22..23

source

pub fn set_eis(&mut self, value: bool)

Bits: 22..23

source

pub const fn span(&self) -> bool

Bits: 23..24

source

pub const fn with_span(self, value: bool) -> Self

Bits: 23..24

source

pub fn set_span(&mut self, value: bool)

Bits: 23..24

source

pub const fn e0e(&self) -> bool

Bits: 24..25

source

pub const fn with_e0e(self, value: bool) -> Self

Bits: 24..25

source

pub fn set_e0e(&mut self, value: bool)

Bits: 24..25

source

pub const fn ee(&self) -> bool

Bits: 25..26

source

pub const fn with_ee(self, value: bool) -> Self

Bits: 25..26

source

pub fn set_ee(&mut self, value: bool)

Bits: 25..26

source

pub const fn uci(&self) -> bool

Bits: 26..27

source

pub const fn with_uci(self, value: bool) -> Self

Bits: 26..27

source

pub fn set_uci(&mut self, value: bool)

Bits: 26..27

source

pub const fn en_da(&self) -> bool

Bits: 27..28

source

pub const fn with_en_da(self, value: bool) -> Self

Bits: 27..28

source

pub fn set_en_da(&mut self, value: bool)

Bits: 27..28

source

pub const fn n_tlsmd(&self) -> bool

Bits: 28..29

source

pub const fn with_n_tlsmd(self, value: bool) -> Self

Bits: 28..29

source

pub fn set_n_tlsmd(&mut self, value: bool)

Bits: 28..29

source

pub const fn lsmaoe(&self) -> bool

Bits: 29..30

source

pub const fn with_lsmaoe(self, value: bool) -> Self

Bits: 29..30

source

pub fn set_lsmaoe(&mut self, value: bool)

Bits: 29..30

source

pub const fn en_ib(&self) -> bool

Bits: 30..31

source

pub const fn with_en_ib(self, value: bool) -> Self

Bits: 30..31

source

pub fn set_en_ib(&mut self, value: bool)

Bits: 30..31

source

pub const fn en_ia(&self) -> bool

Bits: 31..32

source

pub const fn with_en_ia(self, value: bool) -> Self

Bits: 31..32

source

pub fn set_en_ia(&mut self, value: bool)

Bits: 31..32

source

pub const fn cmow(&self) -> bool

Bits: 32..33

source

pub const fn with_cmow(self, value: bool) -> Self

Bits: 32..33

source

pub fn set_cmow(&mut self, value: bool)

Bits: 32..33

source

pub const fn msc_en(&self) -> bool

Bits: 33..34

source

pub const fn with_msc_en(self, value: bool) -> Self

Bits: 33..34

source

pub fn set_msc_en(&mut self, value: bool)

Bits: 33..34

source

pub const fn bt0(&self) -> bool

Bits: 35..36

source

pub const fn with_bt0(self, value: bool) -> Self

Bits: 35..36

source

pub fn set_bt0(&mut self, value: bool)

Bits: 35..36

source

pub const fn bt1(&self) -> bool

Bits: 36..37

source

pub const fn with_bt1(self, value: bool) -> Self

Bits: 36..37

source

pub fn set_bt1(&mut self, value: bool)

Bits: 36..37

source

pub const fn itfsb(&self) -> bool

Bits: 37..38

source

pub const fn with_itfsb(self, value: bool) -> Self

Bits: 37..38

source

pub fn set_itfsb(&mut self, value: bool)

Bits: 37..38

source

pub const fn tcf0(&self) -> u64

Bits: 38..40

source

pub const fn with_tcf0(self, value: u64) -> Self

Bits: 38..40

source

pub fn set_tcf0(&mut self, value: u64)

Bits: 38..40

source

pub const fn tcf(&self) -> u64

Bits: 40..42

source

pub const fn with_tcf(self, value: u64) -> Self

Bits: 40..42

source

pub fn set_tcf(&mut self, value: u64)

Bits: 40..42

source

pub const fn ata0(&self) -> bool

Bits: 42..43

source

pub const fn with_ata0(self, value: bool) -> Self

Bits: 42..43

source

pub fn set_ata0(&mut self, value: bool)

Bits: 42..43

source

pub const fn ata(&self) -> bool

Bits: 43..44

source

pub const fn with_ata(self, value: bool) -> Self

Bits: 43..44

source

pub fn set_ata(&mut self, value: bool)

Bits: 43..44

source

pub const fn dssbs(&self) -> bool

Bits: 44..45

source

pub const fn with_dssbs(self, value: bool) -> Self

Bits: 44..45

source

pub fn set_dssbs(&mut self, value: bool)

Bits: 44..45

source

pub const fn twed_en(&self) -> bool

Bits: 45..46

source

pub const fn with_twed_en(self, value: bool) -> Self

Bits: 45..46

source

pub fn set_twed_en(&mut self, value: bool)

Bits: 45..46

source

pub const fn twedel(&self) -> u64

Bits: 46..50

source

pub const fn with_twedel(self, value: u64) -> Self

Bits: 46..50

source

pub fn set_twedel(&mut self, value: u64)

Bits: 46..50

source

pub const fn tmt0(&self) -> bool

Bits: 50..51

source

pub const fn with_tmt0(self, value: bool) -> Self

Bits: 50..51

source

pub fn set_tmt0(&mut self, value: bool)

Bits: 50..51

source

pub const fn tmt(&self) -> bool

Bits: 51..52

source

pub const fn with_tmt(self, value: bool) -> Self

Bits: 51..52

source

pub fn set_tmt(&mut self, value: bool)

Bits: 51..52

source

pub const fn tme0(&self) -> bool

Bits: 52..53

source

pub const fn with_tme0(self, value: bool) -> Self

Bits: 52..53

source

pub fn set_tme0(&mut self, value: bool)

Bits: 52..53

source

pub const fn tme(&self) -> bool

Bits: 53..54

source

pub const fn with_tme(self, value: bool) -> Self

Bits: 53..54

source

pub fn set_tme(&mut self, value: bool)

Bits: 53..54

source

pub const fn en_asr(&self) -> bool

Bits: 54..55

source

pub const fn with_en_asr(self, value: bool) -> Self

Bits: 54..55

source

pub fn set_en_asr(&mut self, value: bool)

Bits: 54..55

source

pub const fn en_as0(&self) -> bool

Bits: 55..56

source

pub const fn with_en_as0(self, value: bool) -> Self

Bits: 55..56

source

pub fn set_en_as0(&mut self, value: bool)

Bits: 55..56

source

pub const fn en_als(&self) -> bool

Bits: 56..57

source

pub const fn with_en_als(self, value: bool) -> Self

Bits: 56..57

source

pub fn set_en_als(&mut self, value: bool)

Bits: 56..57

source

pub const fn epan(&self) -> bool

Bits: 57..58

source

pub const fn with_epan(self, value: bool) -> Self

Bits: 57..58

source

pub fn set_epan(&mut self, value: bool)

Bits: 57..58

source

pub const fn tcso0(&self) -> bool

Bits: 58..59

source

pub const fn with_tcso0(self, value: bool) -> Self

Bits: 58..59

source

pub fn set_tcso0(&mut self, value: bool)

Bits: 58..59

source

pub const fn tcso(&self) -> bool

Bits: 59..60

source

pub const fn with_tcso(self, value: bool) -> Self

Bits: 59..60

source

pub fn set_tcso(&mut self, value: bool)

Bits: 59..60

source

pub const fn en_tp2(&self) -> bool

Bits: 60..61

source

pub const fn with_en_tp2(self, value: bool) -> Self

Bits: 60..61

source

pub fn set_en_tp2(&mut self, value: bool)

Bits: 60..61

source

pub const fn nmi(&self) -> bool

Bits: 61..62

source

pub const fn with_nmi(self, value: bool) -> Self

Bits: 61..62

source

pub fn set_nmi(&mut self, value: bool)

Bits: 61..62

source

pub const fn spintmask(&self) -> bool

Bits: 62..63

source

pub const fn with_spintmask(self, value: bool) -> Self

Bits: 62..63

source

pub fn set_spintmask(&mut self, value: bool)

Bits: 62..63

source

pub const fn tidcp(&self) -> bool

Bits: 63..64

source

pub const fn with_tidcp(self, value: bool) -> Self

Bits: 63..64

source

pub fn set_tidcp(&mut self, value: bool)

Bits: 63..64

Trait Implementations§

source§

impl Clone for SctlrEl1

source§

fn clone(&self) -> SctlrEl1

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for SctlrEl1

source§

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

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

impl Default for SctlrEl1

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<SctlrEl1> for u64

source§

fn from(v: SctlrEl1) -> u64

Converts to this type from the input type.
source§

impl From<u64> for SctlrEl1

source§

fn from(v: u64) -> Self

Converts to this type from the input type.
source§

impl PartialEq for SctlrEl1

source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for SctlrEl1

source§

impl Eq for SctlrEl1

source§

impl StructuralPartialEq for SctlrEl1

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

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<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.