nxp-pac

Crates

git

Versions

mimxrt1064

Flavors

Ctrl

Struct Ctrl 

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

Control Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Ctrl

Source

pub const fn bee_enable(&self) -> BeeEnable

BEE enable bit

Source

pub const fn set_bee_enable(&mut self, val: BeeEnable)

BEE enable bit

Source

pub const fn ctrl_clk_en(&self) -> bool

Clock enable input, low inactive

Source

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

Clock enable input, low inactive

Source

pub const fn ctrl_sftrst_n(&self) -> bool

Soft reset input, low active

Source

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

Soft reset input, low active

Source

pub const fn key_valid(&self) -> bool

AES-128 key is ready Load AES key by changing this bit from 0 to 1.

Source

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

AES-128 key is ready Load AES key by changing this bit from 0 to 1.

Source

pub const fn key_region_sel(&self) -> KeyRegionSel

AES key region select

Source

pub const fn set_key_region_sel(&mut self, val: KeyRegionSel)

AES key region select

Source

pub const fn ac_prot_en(&self) -> bool

Enable access permission control When AC_PROT_EN is asserted, all encrypted regions are limited to be ARM core access only

Source

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

Enable access permission control When AC_PROT_EN is asserted, all encrypted regions are limited to be ARM core access only

Source

pub const fn little_endian(&self) -> LittleEndian

Endian swap control for the 16 bytes input and output data of AES core.

Source

pub const fn set_little_endian(&mut self, val: LittleEndian)

Endian swap control for the 16 bytes input and output data of AES core.

Source

pub const fn security_level_r0(&self) -> u8

Security level of the allowed access for memory region0

Source

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

Security level of the allowed access for memory region0

Source

pub const fn ctrl_aes_mode_r0(&self) -> CtrlAesModeR0

AES mode of region0

Source

pub const fn set_ctrl_aes_mode_r0(&mut self, val: CtrlAesModeR0)

AES mode of region0

Source

pub const fn security_level_r1(&self) -> u8

Security level of the allowed access for memory region1

Source

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

Security level of the allowed access for memory region1

Source

pub const fn ctrl_aes_mode_r1(&self) -> CtrlAesModeR1

AES mode of region1

Source

pub const fn set_ctrl_aes_mode_r1(&mut self, val: CtrlAesModeR1)

AES mode of region1

Source

pub const fn bee_enable_lock(&self) -> bool

Lock bit for bee_enable

Source

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

Lock bit for bee_enable

Source

pub const fn ctrl_clk_en_lock(&self) -> bool

Lock bit for ctrl_clk_en

Source

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

Lock bit for ctrl_clk_en

Source

pub const fn ctrl_sftrst_n_lock(&self) -> bool

Lock bit for ctrl_sftrst

Source

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

Lock bit for ctrl_sftrst

Source

pub const fn region1_addr_lock(&self) -> bool

Lock bit for region1 address boundary

Source

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

Lock bit for region1 address boundary

Source

pub const fn key_valid_lock(&self) -> bool

Lock bit for key_valid

Source

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

Lock bit for key_valid

Source

pub const fn key_region_sel_lock(&self) -> bool

Lock bit for key_region_sel

Source

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

Lock bit for key_region_sel

Source

pub const fn ac_prot_en_lock(&self) -> bool

Lock bit for ac_prot

Source

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

Lock bit for ac_prot

Source

pub const fn little_endian_lock(&self) -> bool

Lock bit for little_endian

Source

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

Lock bit for little_endian

Source

pub const fn security_level_r0_lock(&self) -> u8

Lock bits for security_level_r0

Source

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

Lock bits for security_level_r0

Source

pub const fn ctrl_aes_mode_r0_lock(&self) -> bool

Lock bit for region0 ctrl_aes_mode

Source

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

Lock bit for region0 ctrl_aes_mode

Source

pub const fn region0_key_lock(&self) -> bool

Lock bit for region0 AES key

Source

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

Lock bit for region0 AES key

Source

pub const fn security_level_r1_lock(&self) -> u8

Lock bits for security_level_r1

Source

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

Lock bits for security_level_r1

Source

pub const fn ctrl_aes_mode_r1_lock(&self) -> bool

Lock bit for region1 ctrl_aes_mode

Source

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

Lock bit for region1 ctrl_aes_mode

Source

pub const fn region1_key_lock(&self) -> bool

Lock bit for region1 AES key

Source

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

Lock bit for region1 AES key

Trait Implementations§

Source§

impl Clone for Ctrl

Source§

fn clone(&self) -> Ctrl

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 Ctrl

Source§

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

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

impl Default for Ctrl

Source§

fn default() -> Ctrl

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

impl PartialEq for Ctrl

Source§

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

Source§

impl Eq for Ctrl

Source§

impl StructuralPartialEq for Ctrl

Auto Trait Implementations§

§

impl Freeze for Ctrl

§

impl RefUnwindSafe for Ctrl

§

impl Send for Ctrl

§

impl Sync for Ctrl

§

impl Unpin for Ctrl

§

impl UnwindSafe for Ctrl

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.