nxp-pac

Crates

git

Versions

mcxn235

Flavors

QdcAlphaFieldsetBravo

Struct QdcAlphaFieldsetBravo 

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

Control 2.

Tuple Fields§

§0: u16

Implementations§

Source§

impl QdcAlphaFieldsetBravo

Source

pub const fn updhld(&self) -> bool

Update Hold Registers. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.

Source

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

Update Hold Registers. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.

Source

pub const fn updpos(&self) -> bool

Update Position Registers. Raw bit values: false (0) = Noaction: No action.; true (1) = Clear: Clear.

Source

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

Update Position Registers. Raw bit values: false (0) = Noaction: No action.; true (1) = Clear: Clear.

Source

pub const fn mod_(&self) -> bool

Enable Modulo Counting. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.

Source

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

Enable Modulo Counting. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.

Source

pub const fn dir(&self) -> bool

Count Direction Flag. Raw bit values: false (0) = Down: Down direction.; true (1) = Up: Up direction.

Source

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

Count Direction Flag. Raw bit values: false (0) = Down: Down direction.; true (1) = Up: Up direction.

Source

pub const fn ruie(&self) -> bool

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

Source

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

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

Source

pub const fn ruirq(&self) -> bool

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

Source

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

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

Source

pub const fn roie(&self) -> bool

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

Source

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

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

Source

pub const fn roirq(&self) -> bool

Roll-over Interrupt Request. Raw bit values: false (0) = Noroll: Did not occur.; true (1) = Roll: Occurred.

Source

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

Roll-over Interrupt Request. Raw bit values: false (0) = Noroll: Did not occur.; true (1) = Roll: Occurred.

Source

pub const fn revmod(&self) -> bool

Revolution Counter Modulus Enable. Raw bit values: false (0) = Index: Use INDEX pulse.; true (1) = Count: Use modulus counting roll-over or roll-under.

Source

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

Revolution Counter Modulus Enable. Raw bit values: false (0) = Index: Use INDEX pulse.; true (1) = Count: Use modulus counting roll-over or roll-under.

Source

pub const fn outctl(&self) -> bool

Output Control. Raw bit values: false (0) = Compare: POSMATCH pulses when a match occurs between the position counters (POS) and the corresponding compare value (COMP ).; true (1) = Read: POSMATCH pulses when the UPOS, LPOS, REV, or POSD registers are read.

Source

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

Output Control. Raw bit values: false (0) = Compare: POSMATCH pulses when a match occurs between the position counters (POS) and the corresponding compare value (COMP ).; true (1) = Read: POSMATCH pulses when the UPOS, LPOS, REV, or POSD registers are read.

Source

pub const fn sabie(&self) -> bool

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

Source

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

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

Source

pub const fn sabirq(&self) -> bool

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

Source

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

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

Source

pub const fn initpos(&self) -> bool

Initialize Position Registers. Raw bit values: false (0) = Noinit: Don’t initialize position counter.; true (1) = Init: Initialize position counter.

Source

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

Initialize Position Registers. Raw bit values: false (0) = Noinit: Don’t initialize position counter.; true (1) = Init: Initialize position counter.

Source

pub const fn emip(&self) -> bool

Enables/disables the position counter to be initialized by Index Event Edge Mark. Raw bit values: false (0) = Emip0: Disable.; true (1) = Emip1: Enable.

Source

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

Enables/disables the position counter to be initialized by Index Event Edge Mark. Raw bit values: false (0) = Emip0: Disable.; true (1) = Emip1: Enable.

Trait Implementations§

Source§

impl Clone for QdcAlphaFieldsetBravo

Source§

fn clone(&self) -> QdcAlphaFieldsetBravo

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 QdcAlphaFieldsetBravo

Source§

fn default() -> QdcAlphaFieldsetBravo

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

impl PartialEq for QdcAlphaFieldsetBravo

Source§

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

Source§

impl Eq for QdcAlphaFieldsetBravo

Source§

impl StructuralPartialEq for QdcAlphaFieldsetBravo

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.