nxp-pac

Crates

git

Versions

mimxrt685s_cm33

Flavors

Mcr

Struct Mcr 

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

Match Control Register. The MCR is used to control if an interrupt is generated and if the TC is reset when a Match occurs.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Mcr

Source

pub const fn mr0i(&self) -> bool

Interrupt on MR0: an interrupt is generated when MR0 matches the value in the TC. 0 = disabled. 1 = enabled.

Source

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

Interrupt on MR0: an interrupt is generated when MR0 matches the value in the TC. 0 = disabled. 1 = enabled.

Source

pub const fn mr0r(&self) -> bool

Reset on MR0: the TC will be reset if MR0 matches it. 0 = disabled. 1 = enabled.

Source

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

Reset on MR0: the TC will be reset if MR0 matches it. 0 = disabled. 1 = enabled.

Source

pub const fn mr0s(&self) -> bool

Stop on MR0: the TC and PC will be stopped and TCR[0] will be set to 0 if MR0 matches the TC. 0 = disabled. 1 = enabled.

Source

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

Stop on MR0: the TC and PC will be stopped and TCR[0] will be set to 0 if MR0 matches the TC. 0 = disabled. 1 = enabled.

Source

pub const fn mr1i(&self) -> bool

Interrupt on MR1: an interrupt is generated when MR1 matches the value in the TC. 0 = disabled. 1 = enabled. 0 = disabled. 1 = enabled.

Source

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

Interrupt on MR1: an interrupt is generated when MR1 matches the value in the TC. 0 = disabled. 1 = enabled. 0 = disabled. 1 = enabled.

Source

pub const fn mr1r(&self) -> bool

Reset on MR1: the TC will be reset if MR1 matches it. 0 = disabled. 1 = enabled.

Source

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

Reset on MR1: the TC will be reset if MR1 matches it. 0 = disabled. 1 = enabled.

Source

pub const fn mr1s(&self) -> bool

Stop on MR1: the TC and PC will be stopped and TCR[0] will be set to 0 if MR1 matches the TC. 0 = disabled. 1 = enabled.

Source

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

Stop on MR1: the TC and PC will be stopped and TCR[0] will be set to 0 if MR1 matches the TC. 0 = disabled. 1 = enabled.

Source

pub const fn mr2i(&self) -> bool

Interrupt on MR2: an interrupt is generated when MR2 matches the value in the TC. 0 = disabled. 1 = enabled.

Source

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

Interrupt on MR2: an interrupt is generated when MR2 matches the value in the TC. 0 = disabled. 1 = enabled.

Source

pub const fn mr2r(&self) -> bool

Reset on MR2: the TC will be reset if MR2 matches it. 0 = disabled. 1 = enabled.

Source

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

Reset on MR2: the TC will be reset if MR2 matches it. 0 = disabled. 1 = enabled.

Source

pub const fn mr2s(&self) -> bool

Stop on MR2: the TC and PC will be stopped and TCR[0] will be set to 0 if MR2 matches the TC. 0 = disabled. 1 = enabled.

Source

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

Stop on MR2: the TC and PC will be stopped and TCR[0] will be set to 0 if MR2 matches the TC. 0 = disabled. 1 = enabled.

Source

pub const fn mr3i(&self) -> bool

Interrupt on MR3: an interrupt is generated when MR3 matches the value in the TC. 0 = disabled. 1 = enabled.

Source

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

Interrupt on MR3: an interrupt is generated when MR3 matches the value in the TC. 0 = disabled. 1 = enabled.

Source

pub const fn mr3r(&self) -> bool

Reset on MR3: the TC will be reset if MR3 matches it. 0 = disabled. 1 = enabled.

Source

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

Reset on MR3: the TC will be reset if MR3 matches it. 0 = disabled. 1 = enabled.

Source

pub const fn mr3s(&self) -> bool

Stop on MR3: the TC and PC will be stopped and TCR[0] will be set to 0 if MR3 matches the TC. 0 = disabled. 1 = enabled.

Source

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

Stop on MR3: the TC and PC will be stopped and TCR[0] will be set to 0 if MR3 matches the TC. 0 = disabled. 1 = enabled.

Source

pub const fn mr0rl(&self) -> bool

Reload MR0 with the contents of the Match 0 Shadow Register when the TC is reset to zero (either via a match event or a write to bit 1 of the TCR). 0 = disabled. 1 = enabled.

Source

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

Reload MR0 with the contents of the Match 0 Shadow Register when the TC is reset to zero (either via a match event or a write to bit 1 of the TCR). 0 = disabled. 1 = enabled.

Source

pub const fn mr1rl(&self) -> bool

Reload MR1 with the contents of the Match 1 Shadow Register when the TC is reset to zero (either via a match event or a write to bit 1 of the TCR). 0 = disabled. 1 = enabled.

Source

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

Reload MR1 with the contents of the Match 1 Shadow Register when the TC is reset to zero (either via a match event or a write to bit 1 of the TCR). 0 = disabled. 1 = enabled.

Source

pub const fn mr2rl(&self) -> bool

Reload MR2 with the contents of the Match 2 Shadow Register when the TC is reset to zero (either via a match event or a write to bit 1 of the TCR). 0 = disabled. 1 = enabled.

Source

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

Reload MR2 with the contents of the Match 2 Shadow Register when the TC is reset to zero (either via a match event or a write to bit 1 of the TCR). 0 = disabled. 1 = enabled.

Source

pub const fn mr3rl(&self) -> bool

Reload MR3 with the contents of the Match 3 Shadow Register when the TC is reset to zero (either via a match event or a write to bit 1 of the TCR). 0 = disabled. 1 = enabled.

Source

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

Reload MR3 with the contents of the Match 3 Shadow Register when the TC is reset to zero (either via a match event or a write to bit 1 of the TCR). 0 = disabled. 1 = enabled.

Trait Implementations§

Source§

impl Clone for Mcr

Source§

fn clone(&self) -> Mcr

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 Mcr

Source§

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

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

impl Default for Mcr

Source§

fn default() -> Mcr

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

impl PartialEq for Mcr

Source§

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

Source§

impl Eq for Mcr

Source§

impl StructuralPartialEq for Mcr

Auto Trait Implementations§

§

impl Freeze for Mcr

§

impl RefUnwindSafe for Mcr

§

impl Send for Mcr

§

impl Sync for Mcr

§

impl Unpin for Mcr

§

impl UnwindSafe for Mcr

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.