nxp-pac

Crates

git

Versions

mcxa456

Flavors

Gencs

Struct Gencs 

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

TSI General Control and Status Register. TSIEN and STM must not change during a scan. SWTS is a write-only start strobe, reading zero; it starts a software scan when STM=0. Clear DATA.EOSF before ESOR, and DATA.OUTRGF before OUTRG_EN or DMAEN_OUTRG. ACTIVE use requires TSIEN_DPD=0, TSIEN=1 and SPC configuration; low-power scan supports channels 0-3 and wakes through WUU, not the NVIC (59.1.3).

Tuple Fields§

§0: u32

Implementations§

Source§

impl Gencs

Source

pub const fn dmaen_eos(&self) -> bool

In-progress DMA Transfer Request Enable. Encodings: 0: Disable DMA request at End of Scan event; 1: Enable DMA request at End of event

Source

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

In-progress DMA Transfer Request Enable. Encodings: 0: Disable DMA request at End of Scan event; 1: Enable DMA request at End of event

Source

pub const fn dmaen_outrg(&self) -> bool

Out of Range DMA Transfer Request Enable. Encodings: 0: Disable DMA request at Out-of-Range event; 1: Enable DMA request at Out-of-Range event

Source

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

Out of Range DMA Transfer Request Enable. Encodings: 0: Disable DMA request at Out-of-Range event; 1: Enable DMA request at Out-of-Range event

Source

pub const fn stm(&self) -> bool

Scan Trigger Mode. Encodings: 0: Software trigger scan; 1: Hardware trigger scan

Source

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

Scan Trigger Mode. Encodings: 0: Software trigger scan; 1: Hardware trigger scan

Source

pub const fn tsien(&self) -> bool

Touch Sensing Input Module Enable. Encodings: 0: TSI module disabled; 1: TSI module enabled

Source

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

Touch Sensing Input Module Enable. Encodings: 0: TSI module disabled; 1: TSI module enabled

Source

pub const fn clk_sel(&self) -> bool

KHz clock selection. Encodings: 0: Select 16K clock to use; 1: Select 32K clock to use

Source

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

KHz clock selection. Encodings: 0: Select 16K clock to use; 1: Select 32K clock to use

Source

pub const fn swts(&self) -> bool

Software Trigger Start. Encodings: 0: No effect; 1: Takes effect

Source

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

Software Trigger Start. Encodings: 0: No effect; 1: Takes effect

Source

pub const fn tsien_dpd(&self) -> bool

Enable of 3v domain logic in this IP. Encodings: 0: 3v domain logic is disabled; 1: 3v domain logic is enabled

Source

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

Enable of 3v domain logic in this IP. Encodings: 0: 3v domain logic is disabled; 1: 3v domain logic is enabled

Source

pub const fn dvolt(&self) -> u8

DVOLT. Encodings: 0: Vm=0.6 V, Vp=1.73 V; 1: Vm=0.6 V, Vp=1.82 V; 2: Vm=0.6 V, Vp=1.89 V; 3: Vm=0.6 V, Vp=1.98 V; 4: Vm=0.6 V, Vp=2.06 V; 5: Vm=0.6 V, Vp=2.14 V; 6: Vm=0.6 V, Vp=2.23 V; 7: Vm=0.6 V, Vp=2.31 V; 8: Vm=0.6 V, Vp=2.39 V; 9: Vm=0.6 V, Vp=2.47 V; 10: Vm=0.6 V, Vp=2.56 V; 11: Vm=0.6 V, Vp=2.64 V; 12: Vm=0.6 V, Vp=2.72 V; 13: Vm=0.6 V, Vp=2.81 V; 14: Vm=0.6 V, Vp=2.88 V; 15: Vm=0.6 V, Vp=2.97 V

Source

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

DVOLT. Encodings: 0: Vm=0.6 V, Vp=1.73 V; 1: Vm=0.6 V, Vp=1.82 V; 2: Vm=0.6 V, Vp=1.89 V; 3: Vm=0.6 V, Vp=1.98 V; 4: Vm=0.6 V, Vp=2.06 V; 5: Vm=0.6 V, Vp=2.14 V; 6: Vm=0.6 V, Vp=2.23 V; 7: Vm=0.6 V, Vp=2.31 V; 8: Vm=0.6 V, Vp=2.39 V; 9: Vm=0.6 V, Vp=2.47 V; 10: Vm=0.6 V, Vp=2.56 V; 11: Vm=0.6 V, Vp=2.64 V; 12: Vm=0.6 V, Vp=2.72 V; 13: Vm=0.6 V, Vp=2.81 V; 14: Vm=0.6 V, Vp=2.88 V; 15: Vm=0.6 V, Vp=2.97 V

Source

pub const fn debounce_counter_configured(&self) -> u8

Numeric code N requires N+1 out-of-range events, 1..32 events.

Source

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

Numeric code N requires N+1 out-of-range events, 1..32 events.

Source

pub const fn esor(&self) -> bool

End of Scan Interrupt enable.. Encodings: 0: End of Scan interrupt is disable; 1: End of Scan interrupt is enabled

Source

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

End of Scan Interrupt enable.. Encodings: 0: End of Scan interrupt is disable; 1: End of Scan interrupt is enabled

Source

pub const fn outrg_en(&self) -> bool

Out-of-range interrupt enable.. Encodings: 0: Out-of-range interrupt is disable; 1: Out-of-range interrupt is enabled

Source

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

Out-of-range interrupt enable.. Encodings: 0: Out-of-range interrupt is disable; 1: Out-of-range interrupt is enabled

Trait Implementations§

Source§

impl Clone for Gencs

Source§

fn clone(&self) -> Gencs

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 Gencs

Source§

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

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

impl Default for Gencs

Source§

fn default() -> Gencs

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

impl PartialEq for Gencs

Source§

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

Source§

impl Eq for Gencs

Source§

impl StructuralPartialEq for Gencs

Auto Trait Implementations§

§

impl Freeze for Gencs

§

impl RefUnwindSafe for Gencs

§

impl Send for Gencs

§

impl Sync for Gencs

§

impl Unpin for Gencs

§

impl UnwindSafe for Gencs

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.