TYPE_W

Struct TYPE_W 

Source
pub struct TYPE_W<'a> { /* private fields */ }
Expand description

Field TYPE writer - Selects type of Touch arrangement to use and so how to handle XPINSEL bits

Implementations§

Source§

impl<'a> TYPE_W<'a>

Source

pub fn variant(self, variant: TYPE_A) -> &'a mut W

Writes variant to the field

Source

pub fn type_0(self) -> &'a mut W

Normal - all X elements are treated as normal, such as buttons and sliders.

Source

pub fn type_1(self) -> &'a mut W

3x3 grid using NXP Complementary measurements. The 1st 9 Xs are assumed to be the 3x3 grid. After that would be normal X elements. This will also allow 3x1 and 3x2 Note: Only possible if XMAX in STATUS is >=8

Source

pub fn type_2(self) -> &'a mut W

5 Sensors interleaved to act as 3x3 touch area using NXP Complementary measurements. 1st 5 Xs used for this, all remaining are treated as normal. Note that if 16 X pins allowed, the 16th will not be usable when TYPE=1. (use TYPE=0 and select 1 smaller than 15 ( and any others from 1 smaller than 5 on up in XPINSEL).

Source

pub fn type_3(self) -> &'a mut W

9 Sensors interleaved to act as 5x5 touch area using NXP Complementary measurements. 1st 9 Xs used for this, all remaining are treated as normal. Note: Only possible if XMAX in STATUS is >=8

Source

pub fn bits(self, value: u8) -> &'a mut W

Writes raw bits to the field

Auto Trait Implementations§

§

impl<'a> Freeze for TYPE_W<'a>

§

impl<'a> RefUnwindSafe for TYPE_W<'a>

§

impl<'a> Send for TYPE_W<'a>

§

impl<'a> Sync for TYPE_W<'a>

§

impl<'a> Unpin for TYPE_W<'a>

§

impl<'a> !UnwindSafe for TYPE_W<'a>

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, 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.