nxp-pac

Crates

git

Versions

mcxa156

Flavors

Intctrl

Struct Intctrl 

Source
#[repr(transparent)]
pub struct Intctrl(pub u16);
Expand description

Interrupt Control Register.

Tuple Fields§

§0: u16

Implementations§

Source§

impl Intctrl

Source

pub const fn sabie(&self) -> bool

Simultaneous PHASEA and PHASEB Change Interrupt Enable. Raw bit values: false (0) = Sabie0: Disabled.; true (1) = Sabie1: Enabled.

Source

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

Simultaneous PHASEA and PHASEB Change Interrupt Enable. Raw bit values: false (0) = Sabie0: Disabled.; true (1) = Sabie1: Enabled.

Source

pub const fn sabirq(&self) -> bool

Simultaneous PHASEA and PHASEB Change Interrupt Request. Raw bit values: false (0) = Sabirq0: No simultaneous change of PHASEA and PHASEB has occurred.; true (1) = Sabirq1: A simultaneous change of PHASEA and PHASEB has occurred.

Source

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

Simultaneous PHASEA and PHASEB Change Interrupt Request. Raw bit values: false (0) = Sabirq0: No simultaneous change of PHASEA and PHASEB has occurred.; true (1) = Sabirq1: A simultaneous change of PHASEA and PHASEB has occurred.

Source

pub const fn dirie(&self) -> bool

Count direction change interrupt enable. Raw bit values: false (0) = Dirie0: Disabled.; true (1) = Dirie1: Enabled.

Source

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

Count direction change interrupt enable. Raw bit values: false (0) = Dirie0: Disabled.; true (1) = Dirie1: Enabled.

Source

pub const fn dirirq(&self) -> bool

Count direction change interrupt. Raw bit values: false (0) = Dirirq0: Count direction unchanged.; true (1) = Dirirq1: Count direction changed.

Source

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

Count direction change interrupt. Raw bit values: false (0) = Dirirq0: Count direction unchanged.; true (1) = Dirirq1: Count direction changed.

Source

pub const fn ruie(&self) -> bool

Roll-under Interrupt Enable. Raw bit values: false (0) = Ruie0: Disabled.; true (1) = Ruie1: Enabled.

Source

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

Roll-under Interrupt Enable. Raw bit values: false (0) = Ruie0: Disabled.; true (1) = Ruie1: Enabled.

Source

pub const fn ruirq(&self) -> bool

Roll-under Interrupt Request. Raw bit values: false (0) = Ruirq0: No roll-under has occurred.; true (1) = Ruirq1: Roll-under has occurred.

Source

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

Roll-under Interrupt Request. Raw bit values: false (0) = Ruirq0: No roll-under has occurred.; true (1) = Ruirq1: Roll-under has occurred.

Source

pub const fn roie(&self) -> bool

Roll-over Interrupt Enable. Raw bit values: false (0) = Roie: Disabled.; true (1) = Roie1: Enabled.

Source

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

Roll-over Interrupt Enable. Raw bit values: false (0) = Roie: Disabled.; true (1) = Roie1: Enabled.

Source

pub const fn roirq(&self) -> bool

Roll-over Interrupt Request. Raw bit values: false (0) = Roirq0: No roll-over has occurred.; true (1) = Roirq1: Roll-over has occurred.

Source

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

Roll-over Interrupt Request. Raw bit values: false (0) = Roirq0: No roll-over has occurred.; true (1) = Roirq1: Roll-over has occurred.

Source

pub const fn cmp0ie(&self) -> bool

Compare 0 Interrupt Enable. Raw bit values: false (0) = Cmp0ie0: Disabled.; true (1) = Cmp0ie1: Enabled.

Source

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

Compare 0 Interrupt Enable. Raw bit values: false (0) = Cmp0ie0: Disabled.; true (1) = Cmp0ie1: Enabled.

Source

pub const fn cmp0irq(&self) -> bool

Compare 0 Interrupt Request. Raw bit values: false (0) = Cmp0irq0: No match has occurred (the position counter does not match the COMP0 value).; true (1) = Cmp0irq1: COMP match has occurred (the position counter matches the COMP0 value).

Source

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

Compare 0 Interrupt Request. Raw bit values: false (0) = Cmp0irq0: No match has occurred (the position counter does not match the COMP0 value).; true (1) = Cmp0irq1: COMP match has occurred (the position counter matches the COMP0 value).

Source

pub const fn cmp1ie(&self) -> bool

Compare1 Interrupt Enable. Raw bit values: false (0) = Cmp1ie0: Disabled.; true (1) = Cmp1ie1: Enabled.

Source

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

Compare1 Interrupt Enable. Raw bit values: false (0) = Cmp1ie0: Disabled.; true (1) = Cmp1ie1: Enabled.

Source

pub const fn cmp1irq(&self) -> bool

Compare1 Interrupt Request. Raw bit values: false (0) = Cmp1irq0: No match has occurred (the position counter does not match the COMP1 value).; true (1) = Cmp1irq1: COMP1 match has occurred (the position counter matches the COMP1 value).

Source

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

Compare1 Interrupt Request. Raw bit values: false (0) = Cmp1irq0: No match has occurred (the position counter does not match the COMP1 value).; true (1) = Cmp1irq1: COMP1 match has occurred (the position counter matches the COMP1 value).

Source

pub const fn cmp2ie(&self) -> bool

Compare2 Interrupt Enable. Raw bit values: false (0) = Cmp2ie0: Disabled.; true (1) = Cmp2ie1: Enabled.

Source

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

Compare2 Interrupt Enable. Raw bit values: false (0) = Cmp2ie0: Disabled.; true (1) = Cmp2ie1: Enabled.

Source

pub const fn cmp2irq(&self) -> bool

Compare2 Interrupt Request. Raw bit values: false (0) = Cmp2irq0: No match has occurred (the position counter does not match the COMP2 value).; true (1) = Cmp2irq1: COMP2 match has occurred (the position counter matches the COMP2 value).

Source

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

Compare2 Interrupt Request. Raw bit values: false (0) = Cmp2irq0: No match has occurred (the position counter does not match the COMP2 value).; true (1) = Cmp2irq1: COMP2 match has occurred (the position counter matches the COMP2 value).

Source

pub const fn cmp3ie(&self) -> bool

Compare3 Interrupt Enable. Raw bit values: false (0) = Cmp3ie0: Disabled.; true (1) = Cmp3ie1: Enabled.

Source

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

Compare3 Interrupt Enable. Raw bit values: false (0) = Cmp3ie0: Disabled.; true (1) = Cmp3ie1: Enabled.

Source

pub const fn cmp3irq(&self) -> bool

Compare3 Interrupt Request. Raw bit values: false (0) = Cmp3irq0: No match has occurred (the position counter does not match the COMP3 value).; true (1) = Cmp3irq1: COMP3 match has occurred (the position counter matches the COMP3 value).

Source

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

Compare3 Interrupt Request. Raw bit values: false (0) = Cmp3irq0: No match has occurred (the position counter does not match the COMP3 value).; true (1) = Cmp3irq1: COMP3 match has occurred (the position counter matches the COMP3 value).

Trait Implementations§

Source§

impl Clone for Intctrl

Source§

fn clone(&self) -> Intctrl

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 Intctrl

Source§

fn default() -> Intctrl

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

impl PartialEq for Intctrl

Source§

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

Source§

impl Eq for Intctrl

Source§

impl StructuralPartialEq for Intctrl

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.