[][src]Struct imxrt1062_enc1::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<u16, Reg<u16, _CTRL>>[src]

pub fn cmpie(&mut self) -> CMPIE_W[src]

Bit 0 - Compare Interrupt Enable

pub fn cmpirq(&mut self) -> CMPIRQ_W[src]

Bit 1 - Compare Interrupt Request

pub fn wde(&mut self) -> WDE_W[src]

Bit 2 - Watchdog Enable

pub fn die(&mut self) -> DIE_W[src]

Bit 3 - Watchdog Timeout Interrupt Enable

pub fn dirq(&mut self) -> DIRQ_W[src]

Bit 4 - Watchdog Timeout Interrupt Request

pub fn xne(&mut self) -> XNE_W[src]

Bit 5 - Use Negative Edge of INDEX Pulse

pub fn xip(&mut self) -> XIP_W[src]

Bit 6 - INDEX Triggered Initialization of Position Counters UPOS and LPOS

pub fn xie(&mut self) -> XIE_W[src]

Bit 7 - INDEX Pulse Interrupt Enable

pub fn xirq(&mut self) -> XIRQ_W[src]

Bit 8 - INDEX Pulse Interrupt Request

pub fn ph1(&mut self) -> PH1_W[src]

Bit 9 - Enable Signal Phase Count Mode

pub fn rev(&mut self) -> REV_W[src]

Bit 10 - Enable Reverse Direction Counting

pub fn swip(&mut self) -> SWIP_W[src]

Bit 11 - Software Triggered Initialization of Position Counters UPOS and LPOS

pub fn hne(&mut self) -> HNE_W[src]

Bit 12 - Use Negative Edge of HOME Input

pub fn hip(&mut self) -> HIP_W[src]

Bit 13 - Enable HOME to Initialize Position Counters UPOS and LPOS

pub fn hie(&mut self) -> HIE_W[src]

Bit 14 - HOME Interrupt Enable

pub fn hirq(&mut self) -> HIRQ_W[src]

Bit 15 - HOME Signal Transition Interrupt Request

impl W<u16, Reg<u16, _FILT>>[src]

pub fn filt_per(&mut self) -> FILT_PER_W[src]

Bits 0:7 - Input Filter Sample Period

pub fn filt_cnt(&mut self) -> FILT_CNT_W[src]

Bits 8:10 - Input Filter Sample Count

impl W<u16, Reg<u16, _WTR>>[src]

pub fn wdog(&mut self) -> WDOG_W[src]

Bits 0:15 - WDOG[15:0] is a binary representation of the number of clock cycles plus one that the watchdog timer counts before timing out and optionally generating an interrupt

impl W<u16, Reg<u16, _POSD>>[src]

pub fn posd(&mut self) -> POSD_W[src]

Bits 0:15 - This read/write register contains the position change in value occurring between each read of the position register

impl W<u16, Reg<u16, _REV>>[src]

pub fn rev(&mut self) -> REV_W[src]

Bits 0:15 - This read/write register contains the current value of the revolution counter.

impl W<u16, Reg<u16, _UPOS>>[src]

pub fn pos(&mut self) -> POS_W[src]

Bits 0:15 - This read/write register contains the upper (most significant) half of the position counter

impl W<u16, Reg<u16, _LPOS>>[src]

pub fn pos(&mut self) -> POS_W[src]

Bits 0:15 - This read/write register contains the lower (least significant) half of the position counter

impl W<u16, Reg<u16, _UINIT>>[src]

pub fn init(&mut self) -> INIT_W[src]

Bits 0:15 - This read/write register contains the value to be used to initialize the upper half of the position counter (UPOS)

impl W<u16, Reg<u16, _LINIT>>[src]

pub fn init(&mut self) -> INIT_W[src]

Bits 0:15 - This read/write register contains the value to be used to initialize the lower half of the position counter (LPOS)

impl W<u16, Reg<u16, _TST>>[src]

pub fn test_count(&mut self) -> TEST_COUNT_W[src]

Bits 0:7 - These bits hold the number of quadrature advances to generate.

pub fn test_period(&mut self) -> TEST_PERIOD_W[src]

Bits 8:12 - These bits hold the period of quadrature phase in IPBus clock cycles.

pub fn qdn(&mut self) -> QDN_W[src]

Bit 13 - Quadrature Decoder Negative Signal

pub fn tce(&mut self) -> TCE_W[src]

Bit 14 - Test Counter Enable

pub fn ten(&mut self) -> TEN_W[src]

Bit 15 - Test Mode Enable

impl W<u16, Reg<u16, _CTRL2>>[src]

pub fn updhld(&mut self) -> UPDHLD_W[src]

Bit 0 - Update Hold Registers

pub fn updpos(&mut self) -> UPDPOS_W[src]

Bit 1 - Update Position Registers

pub fn mod_(&mut self) -> MOD_W[src]

Bit 2 - Enable Modulo Counting

pub fn ruie(&mut self) -> RUIE_W[src]

Bit 4 - Roll-under Interrupt Enable

pub fn ruirq(&mut self) -> RUIRQ_W[src]

Bit 5 - Roll-under Interrupt Request

pub fn roie(&mut self) -> ROIE_W[src]

Bit 6 - Roll-over Interrupt Enable

pub fn roirq(&mut self) -> ROIRQ_W[src]

Bit 7 - Roll-over Interrupt Request

pub fn revmod(&mut self) -> REVMOD_W[src]

Bit 8 - Revolution Counter Modulus Enable

pub fn outctl(&mut self) -> OUTCTL_W[src]

Bit 9 - Output Control

pub fn sabie(&mut self) -> SABIE_W[src]

Bit 10 - Simultaneous PHASEA and PHASEB Change Interrupt Enable

pub fn sabirq(&mut self) -> SABIRQ_W[src]

Bit 11 - Simultaneous PHASEA and PHASEB Change Interrupt Request

impl W<u16, Reg<u16, _UMOD>>[src]

pub fn mod_(&mut self) -> MOD_W[src]

Bits 0:15 - This read/write register contains the upper (most significant) half of the modulus register

impl W<u16, Reg<u16, _LMOD>>[src]

pub fn mod_(&mut self) -> MOD_W[src]

Bits 0:15 - This read/write register contains the lower (least significant) half of the modulus register

impl W<u16, Reg<u16, _UCOMP>>[src]

pub fn comp(&mut self) -> COMP_W[src]

Bits 0:15 - This read/write register contains the upper (most significant) half of the position compare register

impl W<u16, Reg<u16, _LCOMP>>[src]

pub fn comp(&mut self) -> COMP_W[src]

Bits 0:15 - This read/write register contains the lower (least significant) half of the position compare register

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.