Struct W

Source
pub struct W { /* private fields */ }
Expand description

Value to write to the register

Implementations§

Source§

impl W

Source

pub fn reset_value() -> W

Reset value of the register

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut W

Writes raw bits to the register

Source

pub fn ctph(&mut self) -> _CTPHW<'_>

Bits 28:31 - Charge transfer pulse high

Source

pub fn ctpl(&mut self) -> _CTPLW<'_>

Bits 24:27 - Charge transfer pulse low

Source

pub fn ssd(&mut self) -> _SSDW<'_>

Bits 17:23 - Spread spectrum deviation

Source

pub fn sse(&mut self) -> _SSEW<'_>

Bit 16 - Spread spectrum enable

Source

pub fn sspsc(&mut self) -> _SSPSCW<'_>

Bit 15 - Spread spectrum prescaler

Source

pub fn pgpsc(&mut self) -> _PGPSCW<'_>

Bits 12:14 - pulse generator prescaler

Source

pub fn mcv(&mut self) -> _MCVW<'_>

Bits 5:7 - Max count value

Source

pub fn iodef(&mut self) -> _IODEFW<'_>

Bit 4 - I/O Default mode

Source

pub fn syncpol(&mut self) -> _SYNCPOLW<'_>

Bit 3 - Synchronization pin polarity

Source

pub fn am(&mut self) -> _AMW<'_>

Bit 2 - Acquisition mode

Source

pub fn start(&mut self) -> _STARTW<'_>

Bit 1 - Start a new acquisition

Source

pub fn tsce(&mut self) -> _TSCEW<'_>

Bit 0 - Touch sensing controller enable

Auto Trait Implementations§

§

impl Freeze for W

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

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> 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> Same for T

Source§

type Output = T

Should always be Self
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.