nxp-pac

Crates

git

Versions

lpc55s69_cm33_core1

Flavors

Aircr

Struct Aircr 

Source
#[repr(transparent)]
pub struct Aircr(pub u32);
Expand description

Application Interrupt and Reset Control Register.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Aircr

Source

pub const fn vectclractive(&self) -> bool

Reserved for Debug use. This bit reads as 0. When writing to the register you must write 0 to this bit, otherwise behavior is UNPREDICTABLE. This bit is not banked between Security states.

Source

pub const fn set_vectclractive(&mut self, val: bool)

Reserved for Debug use. This bit reads as 0. When writing to the register you must write 0 to this bit, otherwise behavior is UNPREDICTABLE. This bit is not banked between Security states.

Source

pub const fn sysresetreq(&self) -> Sysresetreq

System reset request. This bit allows software or a debugger to request a system reset. This bit is not banked between Security states. RW if SYSRESETREQS is 0. When SYSRESETREQS is set to 1, from Non-secure state this bit acts as RAZ/WI.

Source

pub const fn set_sysresetreq(&mut self, val: Sysresetreq)

System reset request. This bit allows software or a debugger to request a system reset. This bit is not banked between Security states. RW if SYSRESETREQS is 0. When SYSRESETREQS is set to 1, from Non-secure state this bit acts as RAZ/WI.

Source

pub const fn sysresetreqs(&self) -> Sysresetreqs

System reset request, Secure state only. The value of this bit defines whether the SYSRESETREQ bit is functional for Non-secure use. This bit is not banked between Security states. RW from Secure State and RAZ/WI from Non-secure state.

Source

pub const fn set_sysresetreqs(&mut self, val: Sysresetreqs)

System reset request, Secure state only. The value of this bit defines whether the SYSRESETREQ bit is functional for Non-secure use. This bit is not banked between Security states. RW from Secure State and RAZ/WI from Non-secure state.

Source

pub const fn prigroup(&self) -> u8

Interrupt priority grouping field. This field determines the split of group priority from subpriority. This bit is banked between Security states.

Source

pub const fn set_prigroup(&mut self, val: u8)

Interrupt priority grouping field. This field determines the split of group priority from subpriority. This bit is banked between Security states.

Source

pub const fn bfhfnmins(&self) -> Bfhfnmins

BusFault, HardFault, and NMI Non-secure enable. The value of this bit defines whether BusFault and NMI exceptions are Non-secure, and whether exceptions target the Non-secure HardFault exception. This bit is not banked between Security states. RW from Secure-state and RO from Non-secure state.

Source

pub const fn set_bfhfnmins(&mut self, val: Bfhfnmins)

BusFault, HardFault, and NMI Non-secure enable. The value of this bit defines whether BusFault and NMI exceptions are Non-secure, and whether exceptions target the Non-secure HardFault exception. This bit is not banked between Security states. RW from Secure-state and RO from Non-secure state.

Source

pub const fn pris(&self) -> Pris

Prioritize Secure exceptions. The value of this bit defines whether Secure exception priority boosting is enabled. This bit is not banked between Security states. RW from Secure state and RAZ/WI from Non-secure state.

Source

pub const fn set_pris(&mut self, val: Pris)

Prioritize Secure exceptions. The value of this bit defines whether Secure exception priority boosting is enabled. This bit is not banked between Security states. RW from Secure state and RAZ/WI from Non-secure state.

Source

pub const fn endianness(&self) -> Endianness

Data endianness bit. This bit is not banked between Security states.

Source

pub const fn set_endianness(&mut self, val: Endianness)

Data endianness bit. This bit is not banked between Security states.

Source

pub const fn vectkey(&self) -> u16

Register key: Reads as 0xFA05. On writes, write 0x5FA to VECTKEY, otherwise the write is ignored. This Field is not banked between Security states.

Source

pub const fn set_vectkey(&mut self, val: u16)

Register key: Reads as 0xFA05. On writes, write 0x5FA to VECTKEY, otherwise the write is ignored. This Field is not banked between Security states.

Trait Implementations§

Source§

impl Clone for Aircr

Source§

fn clone(&self) -> Aircr

Returns a duplicate 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 Aircr

Source§

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

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

impl Default for Aircr

Source§

fn default() -> Aircr

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

impl PartialEq for Aircr

Source§

fn eq(&self, other: &Aircr) -> 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 Aircr

Source§

impl Eq for Aircr

Source§

impl StructuralPartialEq for Aircr

Auto Trait Implementations§

§

impl Freeze for Aircr

§

impl RefUnwindSafe for Aircr

§

impl Send for Aircr

§

impl Sync for Aircr

§

impl Unpin for Aircr

§

impl UnwindSafe for Aircr

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, 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.