pub struct Sctlr { /* private fields */ }Expand description
SCTLR (System Control Register)
Implementations§
Source§impl Sctlr
impl Sctlr
Sourcepub const ZERO: Self
pub const ZERO: Self
Creates a new instance with a raw value of 0. Equivalent to [Self::new_with_raw_value(0)].
Sourcepub const fn new_with_raw_value(value: u32) -> Sctlr
pub const fn new_with_raw_value(value: u32) -> Sctlr
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn with_ie(&self, field_value: bool) -> Self
pub const fn with_ie(&self, field_value: bool) -> Self
The bitmask for the Instruction Endianness bit
Sourcepub const fn with_te(&self, field_value: bool) -> Self
pub const fn with_te(&self, field_value: bool) -> Self
The bitmask for the Thumb Exception Enable bit
Sourcepub const fn with_nmfi(&self, field_value: bool) -> Self
pub const fn with_nmfi(&self, field_value: bool) -> Self
The bitmask for the Non-Maskable FIQ bit
Sourcepub const fn with_ee(&self, field_value: bool) -> Self
pub const fn with_ee(&self, field_value: bool) -> Self
The bitmask for the Exception Endianness bit
Sourcepub const fn with_dz(&self, field_value: bool) -> Self
pub const fn with_dz(&self, field_value: bool) -> Self
The bitmask for the Divide by Zero Fault bit
Sourcepub const fn with_br(&self, field_value: bool) -> Self
pub const fn with_br(&self, field_value: bool) -> Self
The bitmask for the Background Region bit
Sourcepub const fn with_v(&self, field_value: bool) -> Self
pub const fn with_v(&self, field_value: bool) -> Self
The bitmask for the Exception Vector Table bit
Sourcepub const fn with_i(&self, field_value: bool) -> Self
pub const fn with_i(&self, field_value: bool) -> Self
The bitmask for the Instruction Cache enable bit
Trait Implementations§
Source§impl SysRegRead for Sctlr
impl SysRegRead for Sctlr
Source§impl SysRegWrite for Sctlr
impl SysRegWrite for Sctlr
impl Copy for Sctlr
Auto Trait Implementations§
impl Freeze for Sctlr
impl RefUnwindSafe for Sctlr
impl Send for Sctlr
impl Sync for Sctlr
impl Unpin for Sctlr
impl UnwindSafe for Sctlr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more