nxp-pac

Crates

git

Versions

mcxa132

Flavors

CmdCheck

Struct CmdCheck 

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

FMU Command Check Register.

Tuple Fields§

§0: u32

Implementations§

Source§

impl CmdCheck

Source

pub const fn alignfail_phr(&self) -> bool

Phrase Alignment Fail. Raw bit values: false (0) = Zz149: The address is phrase-aligned.; true (1) = Zz150: The address is not phrase-aligned.

Source

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

Phrase Alignment Fail. Raw bit values: false (0) = Zz149: The address is phrase-aligned.; true (1) = Zz150: The address is not phrase-aligned.

Source

pub const fn alignfail_pg(&self) -> bool

Page Alignment Fail. Raw bit values: false (0) = Zz147: The address is page-aligned.; true (1) = Zz148: The address is not page-aligned.

Source

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

Page Alignment Fail. Raw bit values: false (0) = Zz147: The address is page-aligned.; true (1) = Zz148: The address is not page-aligned.

Source

pub const fn alignfail_scr(&self) -> bool

Sector Alignment Fail. Raw bit values: false (0) = Zz145: The address is sector-aligned.; true (1) = Zz146: The address is not sector-aligned.

Source

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

Sector Alignment Fail. Raw bit values: false (0) = Zz145: The address is sector-aligned.; true (1) = Zz146: The address is not sector-aligned.

Source

pub const fn alignfail_blk(&self) -> bool

Block Alignment Fail. Raw bit values: false (0) = Zz143: The address is block-aligned.; true (1) = Zz144: The address is not block-aligned.

Source

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

Block Alignment Fail. Raw bit values: false (0) = Zz143: The address is block-aligned.; true (1) = Zz144: The address is not block-aligned.

Source

pub const fn addr_fail(&self) -> bool

Address Fail. Raw bit values: false (0) = Zz141: The address is within the flash or IFR address space.; true (1) = Zz142: The address is outside the flash or IFR address space.

Source

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

Address Fail. Raw bit values: false (0) = Zz141: The address is within the flash or IFR address space.; true (1) = Zz142: The address is outside the flash or IFR address space.

Source

pub const fn ifr_cmd(&self) -> bool

IFR Command. Raw bit values: false (0) = Zz139: The command operates on a main flash address.; true (1) = Zz140: The command operates on an IFR address.

Source

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

IFR Command. Raw bit values: false (0) = Zz139: The command operates on a main flash address.; true (1) = Zz140: The command operates on an IFR address.

Source

pub const fn all_cmd(&self) -> bool

All Blocks Command. Raw bit values: false (0) = Zz137: The command operates on a single flash block.; true (1) = Zz138: The command operates on all flash blocks.

Source

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

All Blocks Command. Raw bit values: false (0) = Zz137: The command operates on a single flash block.; true (1) = Zz138: The command operates on all flash blocks.

Source

pub const fn range_fail(&self) -> bool

Address Range Fail. Raw bit values: false (0) = Zz135: The address range is valid.; true (1) = Zz136: The address range is invalid.

Source

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

Address Range Fail. Raw bit values: false (0) = Zz135: The address range is valid.; true (1) = Zz136: The address range is invalid.

Source

pub const fn scr_align_chk(&self) -> bool

Sector Alignment Check. Raw bit values: false (0) = Zz133: No sector alignment check.; true (1) = Zz134: Sector alignment check.

Source

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

Sector Alignment Check. Raw bit values: false (0) = Zz133: No sector alignment check.; true (1) = Zz134: Sector alignment check.

Source

pub const fn option_fail(&self) -> bool

Option Check Fail. Raw bit values: false (0) = Zz131: Option check passes for read command or command is not a read command.; true (1) = Zz132: Option check fails for read command.

Source

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

Option Check Fail. Raw bit values: false (0) = Zz131: Option check passes for read command or command is not a read command.; true (1) = Zz132: Option check fails for read command.

Source

pub const fn illegal_cmd(&self) -> bool

Illegal Command. Raw bit values: false (0) = Zz129: Command is legal.; true (1) = Zz130: Command is illegal.

Source

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

Illegal Command. Raw bit values: false (0) = Zz129: Command is legal.; true (1) = Zz130: Command is illegal.

Trait Implementations§

Source§

impl Clone for CmdCheck

Source§

fn clone(&self) -> CmdCheck

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 CmdCheck

Source§

fn default() -> CmdCheck

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

impl PartialEq for CmdCheck

Source§

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

Source§

impl Eq for CmdCheck

Source§

impl StructuralPartialEq for CmdCheck

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, 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.