nxp-pac

Crates

git

Versions

mcxa156

Flavors

Mctl

Struct Mctl 

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

FMU Control Register.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Mctl

Source

pub const fn corehld(&self) -> bool

Core Hold. Raw bit values: false (0) = Zz125: CPU access is allowed.; true (1) = Zz126: CPU access must be blocked.

Source

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

Core Hold. Raw bit values: false (0) = Zz125: CPU access is allowed.; true (1) = Zz126: CPU access must be blocked.

Source

pub const fn lsact_en(&self) -> bool

LSACTIVE Feature Enable. Raw bit values: false (0) = Zz123: LSACTIVE feature disabled completely: FCTRL[LSACTIVE] is forced low and no longer writable, LVE cannot assert at the TSMC array interface.; true (1) = Zz124: LSACTIVE feature fully enabled and controllable by SoC and internal UINT SM.

Source

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

LSACTIVE Feature Enable. Raw bit values: false (0) = Zz123: LSACTIVE feature disabled completely: FCTRL[LSACTIVE] is forced low and no longer writable, LVE cannot assert at the TSMC array interface.; true (1) = Zz124: LSACTIVE feature fully enabled and controllable by SoC and internal UINT SM.

Source

pub const fn lsactwren(&self) -> bool

LSACTIVE Write Enable. Raw bit values: false (0) = Zz121: Unrestricted write access allowed.; true (1) = Zz122: Write access while CMP set must match CMDDID and CMDPRT.

Source

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

LSACTIVE Write Enable. Raw bit values: false (0) = Zz121: Unrestricted write access allowed.; true (1) = Zz122: Write access while CMP set must match CMDDID and CMDPRT.

Source

pub const fn master_repair_en(&self) -> bool

Master Repair Enable. Raw bit values: false (0) = Zz119: Repair disabled.; true (1) = Zz120: Repair enable determined by bit 0 of each REPAIR register.

Source

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

Master Repair Enable. Raw bit values: false (0) = Zz119: Repair disabled.; true (1) = Zz120: Repair enable determined by bit 0 of each REPAIR register.

Source

pub const fn rfcmden(&self) -> bool

RF Active Command Enable Control. Raw bit values: false (0) = Zz117: Flash commands blocked (CCIF not writable).; true (1) = Zz118: Flash commands allowed.

Source

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

RF Active Command Enable Control. Raw bit values: false (0) = Zz117: Flash commands blocked (CCIF not writable).; true (1) = Zz118: Flash commands allowed.

Source

pub const fn cwsabten(&self) -> bool

Command Write Sequence Abort Enable. Raw bit values: false (0) = Zz115: CWS abort feature is disabled.; true (1) = Zz116: CWS abort feature is enabled.

Source

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

Command Write Sequence Abort Enable. Raw bit values: false (0) = Zz115: CWS abort feature is disabled.; true (1) = Zz116: CWS abort feature is enabled.

Source

pub const fn mrgrddis(&self) -> bool

Margin Read Disable. Raw bit values: false (0) = Zz113: Margin Read Settings are enabled.; true (1) = Zz114: Margin Read Settings are disabled.

Source

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

Margin Read Disable. Raw bit values: false (0) = Zz113: Margin Read Settings are enabled.; true (1) = Zz114: Margin Read Settings are disabled.

Source

pub const fn mrgrd0(&self) -> u8

Margin Read Setting for Program.

Source

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

Margin Read Setting for Program.

Source

pub const fn mrgrd1(&self) -> u8

Margin Read Setting for Erase.

Source

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

Margin Read Setting for Erase.

Source

pub const fn ersaack(&self) -> bool

Mass Erase (Erase All) Acknowledge. Raw bit values: false (0) = Zz111: Mass Erase operation is not active (operation has completed or has not started).; true (1) = Zz112: Mass Erase operation is active (controller acknowledges that the soc_ersall_req input is asserted and will continue with the operation).

Source

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

Mass Erase (Erase All) Acknowledge. Raw bit values: false (0) = Zz111: Mass Erase operation is not active (operation has completed or has not started).; true (1) = Zz112: Mass Erase operation is active (controller acknowledges that the soc_ersall_req input is asserted and will continue with the operation).

Source

pub const fn scan_obs(&self) -> bool

Scan Observability Control. Raw bit values: false (0) = Zz109: Normal functional behavior.; true (1) = Zz110: Enables observation of signals that may otherwise be ATPG untestable.

Source

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

Scan Observability Control. Raw bit values: false (0) = Zz109: Normal functional behavior.; true (1) = Zz110: Enables observation of signals that may otherwise be ATPG untestable.

Source

pub const fn bist_ctl(&self) -> bool

BIST IP Control. Raw bit values: false (0) = Zz107: BIST IP disabled.; true (1) = Zz108: BIST IP enabled.

Source

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

BIST IP Control. Raw bit values: false (0) = Zz107: BIST IP disabled.; true (1) = Zz108: BIST IP enabled.

Source

pub const fn smwr_ctl(&self) -> bool

SMWR IP Control. Raw bit values: false (0) = Zz105: SMWR IP disabled.; true (1) = Zz106: SMWR IP enabled.

Source

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

SMWR IP Control. Raw bit values: false (0) = Zz105: SMWR IP disabled.; true (1) = Zz106: SMWR IP enabled.

Source

pub const fn salv_dis(&self) -> bool

Salvage Disable. Raw bit values: false (0) = Zz103: Salvage enabled (ECC used during erase verify).; true (1) = Zz104: Salvage disabled (ECC not used during erase verify).

Source

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

Salvage Disable. Raw bit values: false (0) = Zz103: Salvage enabled (ECC used during erase verify).; true (1) = Zz104: Salvage disabled (ECC not used during erase verify).

Source

pub const fn soc_ecc_ctl(&self) -> bool

SOC ECC Control. Raw bit values: false (0) = Zz101: ECC is enabled for SOC read access.; true (1) = Zz102: ECC is disabled for SOC read access.

Source

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

SOC ECC Control. Raw bit values: false (0) = Zz101: ECC is enabled for SOC read access.; true (1) = Zz102: ECC is disabled for SOC read access.

Source

pub const fn fmu_ecc_ctl(&self) -> bool

FMU ECC Control. Raw bit values: false (0) = Zz99: ECC is enabled for FMU program operations.; true (1) = Zz100: ECC is disabled for FMU program operations.

Source

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

FMU ECC Control. Raw bit values: false (0) = Zz99: ECC is enabled for FMU program operations.; true (1) = Zz100: ECC is disabled for FMU program operations.

Source

pub const fn bist_pwr_dis(&self) -> bool

BIST Power Mode Disable. Raw bit values: false (0) = Zz97: BIST DFT logic has full control of SLM and LVE when BIST is enabled (including during commands).; true (1) = Zz98: BIST DFT logic has no control of SLM and LVE; power mode RTL is in complete control of SLM and LVE values.

Source

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

BIST Power Mode Disable. Raw bit values: false (0) = Zz97: BIST DFT logic has full control of SLM and LVE when BIST is enabled (including during commands).; true (1) = Zz98: BIST DFT logic has no control of SLM and LVE; power mode RTL is in complete control of SLM and LVE values.

Source

pub const fn osc_h(&self) -> bool

Oscillator control. Raw bit values: false (0) = Zz95: Use APB clock.; true (1) = Zz96: Use a known fixed-frequency clock, e.g. 12 MHz.

Source

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

Oscillator control. Raw bit values: false (0) = Zz95: Use APB clock.; true (1) = Zz96: Use a known fixed-frequency clock, e.g. 12 MHz.

Trait Implementations§

Source§

impl Clone for Mctl

Source§

fn clone(&self) -> Mctl

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 Default for Mctl

Source§

fn default() -> Mctl

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

impl PartialEq for Mctl

Source§

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

Source§

impl Eq for Mctl

Source§

impl StructuralPartialEq for Mctl

Auto Trait Implementations§

§

impl Freeze for Mctl

§

impl RefUnwindSafe for Mctl

§

impl Send for Mctl

§

impl Sync for Mctl

§

impl Unpin for Mctl

§

impl UnwindSafe for Mctl

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.