W

Type Alias W 

Source
pub type W = W<TP_CTRL2_SPEC>;
Expand description

Register tp_ctrl2 writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn pre_mea_thre_cnt(&mut self) -> PRE_MEA_THRE_CNT_W<'_, TP_CTRL2_SPEC>

Bits 0:23 - TP Pressure Measurement Threshold Control

Source

pub fn pre_mea_en(&mut self) -> PRE_MEA_EN_W<'_, TP_CTRL2_SPEC>

Bit 24 - TP Pressure Measurement Enable Control

Source

pub fn tp_fifo_mode_select( &mut self, ) -> TP_FIFO_MODE_SELECT_W<'_, TP_CTRL2_SPEC>

Bits 26:27 - TP Access Data Mode Select

Source

pub fn tp_sensitive_adjust( &mut self, ) -> TP_SENSITIVE_ADJUST_W<'_, TP_CTRL2_SPEC>

Bits 28:31 - Internal Pull-up Resistor Control

Source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual