[][src]Struct imxrt1062_tsc::W

pub struct W<U, REG> { /* fields omitted */ }

Register writer

Used as an argument to the closures in the write and modify methods of the register

Methods

impl<U, REG> W<U, REG>[src]

pub unsafe fn bits(&mut self, bits: U) -> &mut Self[src]

Writes raw bits to the register

impl W<u32, Reg<u32, _BASIC_SETTING>>[src]

pub fn auto_measure(&mut self) -> AUTO_MEASURE_W[src]

Bit 0 - Auto Measure

pub fn _4_5_wire(&mut self) -> _4_5_WIRE_W[src]

Bit 4 - 4/5 Wire detection

pub fn measure_delay_time(&mut self) -> MEASURE_DELAY_TIME_W[src]

Bits 8:31 - Measure Delay Time

impl W<u32, Reg<u32, _PRE_CHARGE_TIME>>[src]

pub fn pre_charge_time(&mut self) -> PRE_CHARGE_TIME_W[src]

Bits 0:31 - Before detection, the top screen needs some time before being pulled up to a high voltage.

impl W<u32, Reg<u32, _FLOW_CONTROL>>[src]

pub fn sw_rst(&mut self) -> SW_RST_W[src]

Bit 0 - Soft Reset

pub fn start_measure(&mut self) -> START_MEASURE_W[src]

Bit 4 - Start Measure

pub fn drop_measure(&mut self) -> DROP_MEASURE_W[src]

Bit 8 - Drop Measure

pub fn start_sense(&mut self) -> START_SENSE_W[src]

Bit 12 - Start Sense

pub fn disable(&mut self) -> DISABLE_W[src]

Bit 16 - This bit is for SW disable registers

impl W<u32, Reg<u32, _INT_EN>>[src]

pub fn measure_int_en(&mut self) -> MEASURE_INT_EN_W[src]

Bit 0 - Measure Interrupt Enable

pub fn detect_int_en(&mut self) -> DETECT_INT_EN_W[src]

Bit 4 - Detect Interrupt Enable

pub fn idle_sw_int_en(&mut self) -> IDLE_SW_INT_EN_W[src]

Bit 12 - Idle Software Interrupt Enable

impl W<u32, Reg<u32, _INT_SIG_EN>>[src]

pub fn measure_sig_en(&mut self) -> MEASURE_SIG_EN_W[src]

Bit 0 - Measure Signal Enable

pub fn detect_sig_en(&mut self) -> DETECT_SIG_EN_W[src]

Bit 4 - Detect Signal Enable

pub fn valid_sig_en(&mut self) -> VALID_SIG_EN_W[src]

Bit 8 - Valid Signal Enable

pub fn idle_sw_sig_en(&mut self) -> IDLE_SW_SIG_EN_W[src]

Bit 12 - Idle Software Signal Enable

impl W<u32, Reg<u32, _INT_STATUS>>[src]

pub fn measure(&mut self) -> MEASURE_W[src]

Bit 0 - Measure Signal

pub fn detect(&mut self) -> DETECT_W[src]

Bit 4 - Detect Signal

pub fn valid(&mut self) -> VALID_W[src]

Bit 8 - Valid Signal

pub fn idle_sw(&mut self) -> IDLE_SW_W[src]

Bit 12 - Idle Software

impl W<u32, Reg<u32, _DEBUG_MODE>>[src]

pub fn ext_hwts(&mut self) -> EXT_HWTS_W[src]

Bits 16:20 - Hardware Trigger Select Signal

pub fn trigger(&mut self) -> TRIGGER_W[src]

Bit 24 - Trigger

pub fn adc_coco_clear(&mut self) -> ADC_COCO_CLEAR_W[src]

Bit 25 - ADC Coco Clear

pub fn adc_coco_clear_disable(&mut self) -> ADC_COCO_CLEAR_DISABLE_W[src]

Bit 26 - ADC COCO Clear Disable

pub fn debug_en(&mut self) -> DEBUG_EN_W[src]

Bit 28 - Debug Enable

impl W<u32, Reg<u32, _DEBUG_MODE2>>[src]

pub fn xpul_pull_down(&mut self) -> XPUL_PULL_DOWN_W[src]

Bit 0 - XPUL Wire Pull Down Switch

pub fn xpul_pull_up(&mut self) -> XPUL_PULL_UP_W[src]

Bit 1 - XPUL Wire Pull Up Switch

pub fn xpul_200k_pull_up(&mut self) -> XPUL_200K_PULL_UP_W[src]

Bit 2 - XPUL Wire 200K Pull Up Switch

pub fn xnur_pull_down(&mut self) -> XNUR_PULL_DOWN_W[src]

Bit 3 - XNUR Wire Pull Down Switch

pub fn xnur_pull_up(&mut self) -> XNUR_PULL_UP_W[src]

Bit 4 - XNUR Wire Pull Up Switch

pub fn xnur_200k_pull_up(&mut self) -> XNUR_200K_PULL_UP_W[src]

Bit 5 - XNUR Wire 200K Pull Up Switch

pub fn ypll_pull_down(&mut self) -> YPLL_PULL_DOWN_W[src]

Bit 6 - YPLL Wire Pull Down Switch

pub fn ypll_pull_up(&mut self) -> YPLL_PULL_UP_W[src]

Bit 7 - YPLL Wire Pull Up Switch

pub fn ypll_200k_pull_up(&mut self) -> YPLL_200K_PULL_UP_W[src]

Bit 8 - YPLL Wire 200K Pull Up Switch

pub fn ynlr_pull_down(&mut self) -> YNLR_PULL_DOWN_W[src]

Bit 9 - YNLR Wire Pull Down Switch

pub fn ynlr_pull_up(&mut self) -> YNLR_PULL_UP_W[src]

Bit 10 - YNLR Wire Pull Up Switch

pub fn ynlr_200k_pull_up(&mut self) -> YNLR_200K_PULL_UP_W[src]

Bit 11 - YNLR Wire 200K Pull Up Switch

pub fn wiper_pull_down(&mut self) -> WIPER_PULL_DOWN_W[src]

Bit 12 - Wiper Wire Pull Down Switch

pub fn wiper_pull_up(&mut self) -> WIPER_PULL_UP_W[src]

Bit 13 - Wiper Wire Pull Up Switch

pub fn wiper_200k_pull_up(&mut self) -> WIPER_200K_PULL_UP_W[src]

Bit 14 - Wiper Wire 200K Pull Up Switch

pub fn detect_enable_four_wire(&mut self) -> DETECT_ENABLE_FOUR_WIRE_W[src]

Bit 24 - Detect Enable Four Wire

pub fn detect_enable_five_wire(&mut self) -> DETECT_ENABLE_FIVE_WIRE_W[src]

Bit 28 - Detect Enable Five Wire

Auto Trait Implementations

impl<U, REG> Send for W<U, REG> where
    REG: Send,
    U: Send

impl<U, REG> Sync for W<U, REG> where
    REG: Sync,
    U: Sync

impl<U, REG> Unpin for W<U, REG> where
    REG: Unpin,
    U: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.