[][src]Struct imxrt1062_enc1::R

pub struct R<U, T> { /* fields omitted */ }

Register/field reader

Result of the read method of a register. Also it can be used in the modify method

Methods

impl<U, T> R<U, T> where
    U: Copy
[src]

pub fn bits(&self) -> U[src]

Read raw bits from register/field

impl<FI> R<bool, FI>[src]

pub fn bit(&self) -> bool[src]

Value of the field as raw bits

pub fn bit_is_clear(&self) -> bool[src]

Returns true if the bit is clear (0)

pub fn bit_is_set(&self) -> bool[src]

Returns true if the bit is set (1)

impl R<bool, CMPIE_A>[src]

pub fn variant(&self) -> CMPIE_A[src]

Get enumerated values variant

pub fn is_cmpie_0(&self) -> bool[src]

Checks if the value of the field is CMPIE_0

pub fn is_cmpie_1(&self) -> bool[src]

Checks if the value of the field is CMPIE_1

impl R<bool, CMPIRQ_A>[src]

pub fn variant(&self) -> CMPIRQ_A[src]

Get enumerated values variant

pub fn is_cmpirq_0(&self) -> bool[src]

Checks if the value of the field is CMPIRQ_0

pub fn is_cmpirq_1(&self) -> bool[src]

Checks if the value of the field is CMPIRQ_1

impl R<bool, WDE_A>[src]

pub fn variant(&self) -> WDE_A[src]

Get enumerated values variant

pub fn is_wde_0(&self) -> bool[src]

Checks if the value of the field is WDE_0

pub fn is_wde_1(&self) -> bool[src]

Checks if the value of the field is WDE_1

impl R<bool, DIE_A>[src]

pub fn variant(&self) -> DIE_A[src]

Get enumerated values variant

pub fn is_die_0(&self) -> bool[src]

Checks if the value of the field is DIE_0

pub fn is_die_1(&self) -> bool[src]

Checks if the value of the field is DIE_1

impl R<bool, DIRQ_A>[src]

pub fn variant(&self) -> DIRQ_A[src]

Get enumerated values variant

pub fn is_dirq_0(&self) -> bool[src]

Checks if the value of the field is DIRQ_0

pub fn is_dirq_1(&self) -> bool[src]

Checks if the value of the field is DIRQ_1

impl R<bool, XNE_A>[src]

pub fn variant(&self) -> XNE_A[src]

Get enumerated values variant

pub fn is_xne_0(&self) -> bool[src]

Checks if the value of the field is XNE_0

pub fn is_xne_1(&self) -> bool[src]

Checks if the value of the field is XNE_1

impl R<bool, XIP_A>[src]

pub fn variant(&self) -> XIP_A[src]

Get enumerated values variant

pub fn is_xip_0(&self) -> bool[src]

Checks if the value of the field is XIP_0

pub fn is_xip_1(&self) -> bool[src]

Checks if the value of the field is XIP_1

impl R<bool, XIE_A>[src]

pub fn variant(&self) -> XIE_A[src]

Get enumerated values variant

pub fn is_xie_0(&self) -> bool[src]

Checks if the value of the field is XIE_0

pub fn is_xie_1(&self) -> bool[src]

Checks if the value of the field is XIE_1

impl R<bool, XIRQ_A>[src]

pub fn variant(&self) -> XIRQ_A[src]

Get enumerated values variant

pub fn is_xirq_0(&self) -> bool[src]

Checks if the value of the field is XIRQ_0

pub fn is_xirq_1(&self) -> bool[src]

Checks if the value of the field is XIRQ_1

impl R<bool, PH1_A>[src]

pub fn variant(&self) -> PH1_A[src]

Get enumerated values variant

pub fn is_ph1_0(&self) -> bool[src]

Checks if the value of the field is PH1_0

pub fn is_ph1_1(&self) -> bool[src]

Checks if the value of the field is PH1_1

impl R<bool, REV_A>[src]

pub fn variant(&self) -> REV_A[src]

Get enumerated values variant

pub fn is_rev_0(&self) -> bool[src]

Checks if the value of the field is REV_0

pub fn is_rev_1(&self) -> bool[src]

Checks if the value of the field is REV_1

impl R<bool, SWIP_A>[src]

pub fn variant(&self) -> SWIP_A[src]

Get enumerated values variant

pub fn is_swip_0(&self) -> bool[src]

Checks if the value of the field is SWIP_0

pub fn is_swip_1(&self) -> bool[src]

Checks if the value of the field is SWIP_1

impl R<bool, HNE_A>[src]

pub fn variant(&self) -> HNE_A[src]

Get enumerated values variant

pub fn is_hne_0(&self) -> bool[src]

Checks if the value of the field is HNE_0

pub fn is_hne_1(&self) -> bool[src]

Checks if the value of the field is HNE_1

impl R<bool, HIP_A>[src]

pub fn variant(&self) -> HIP_A[src]

Get enumerated values variant

pub fn is_hip_0(&self) -> bool[src]

Checks if the value of the field is HIP_0

pub fn is_hip_1(&self) -> bool[src]

Checks if the value of the field is HIP_1

impl R<bool, HIE_A>[src]

pub fn variant(&self) -> HIE_A[src]

Get enumerated values variant

pub fn is_hie_0(&self) -> bool[src]

Checks if the value of the field is HIE_0

pub fn is_hie_1(&self) -> bool[src]

Checks if the value of the field is HIE_1

impl R<bool, HIRQ_A>[src]

pub fn variant(&self) -> HIRQ_A[src]

Get enumerated values variant

pub fn is_hirq_0(&self) -> bool[src]

Checks if the value of the field is HIRQ_0

pub fn is_hirq_1(&self) -> bool[src]

Checks if the value of the field is HIRQ_1

impl R<u16, Reg<u16, _CTRL>>[src]

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

Bit 0 - Compare Interrupt Enable

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

Bit 1 - Compare Interrupt Request

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

Bit 2 - Watchdog Enable

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

Bit 3 - Watchdog Timeout Interrupt Enable

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

Bit 4 - Watchdog Timeout Interrupt Request

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

Bit 5 - Use Negative Edge of INDEX Pulse

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

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

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

Bit 7 - INDEX Pulse Interrupt Enable

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

Bit 8 - INDEX Pulse Interrupt Request

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

Bit 9 - Enable Signal Phase Count Mode

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

Bit 10 - Enable Reverse Direction Counting

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

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

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

Bit 12 - Use Negative Edge of HOME Input

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

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

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

Bit 14 - HOME Interrupt Enable

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

Bit 15 - HOME Signal Transition Interrupt Request

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

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

Bits 0:7 - Input Filter Sample Period

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

Bits 8:10 - Input Filter Sample Count

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

pub fn wdog(&self) -> WDOG_R[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 R<u16, Reg<u16, _POSD>>[src]

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

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

impl R<u16, Reg<u16, _POSDH>>[src]

pub fn posdh(&self) -> POSDH_R[src]

Bits 0:15 - This read-only register contains a snapshot of the value of the POSD register

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

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

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

impl R<u16, Reg<u16, _REVH>>[src]

pub fn revh(&self) -> REVH_R[src]

Bits 0:15 - This read-only register contains a snapshot of the value of the REV register.

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

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

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

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

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

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

impl R<u16, Reg<u16, _UPOSH>>[src]

pub fn posh(&self) -> POSH_R[src]

Bits 0:15 - This read-only register contains a snapshot of the UPOS register.

impl R<u16, Reg<u16, _LPOSH>>[src]

pub fn posh(&self) -> POSH_R[src]

Bits 0:15 - This read-only register contains a snapshot of the LPOS register.

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

pub fn init(&self) -> INIT_R[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 R<u16, Reg<u16, _LINIT>>[src]

pub fn init(&self) -> INIT_R[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 R<u16, Reg<u16, _IMR>>[src]

pub fn home(&self) -> HOME_R[src]

Bit 0 - This is the raw HOME input.

pub fn index(&self) -> INDEX_R[src]

Bit 1 - This is the raw INDEX input.

pub fn phb(&self) -> PHB_R[src]

Bit 2 - This is the raw PHASEB input.

pub fn pha(&self) -> PHA_R[src]

Bit 3 - This is the raw PHASEA input.

pub fn fhom(&self) -> FHOM_R[src]

Bit 4 - This is the filtered version of HOME input.

pub fn find(&self) -> FIND_R[src]

Bit 5 - This is the filtered version of INDEX input.

pub fn fphb(&self) -> FPHB_R[src]

Bit 6 - This is the filtered version of PHASEB input.

pub fn fpha(&self) -> FPHA_R[src]

Bit 7 - This is the filtered version of PHASEA input.

impl R<bool, QDN_A>[src]

pub fn variant(&self) -> QDN_A[src]

Get enumerated values variant

pub fn is_qdn_0(&self) -> bool[src]

Checks if the value of the field is QDN_0

pub fn is_qdn_1(&self) -> bool[src]

Checks if the value of the field is QDN_1

impl R<bool, TCE_A>[src]

pub fn variant(&self) -> TCE_A[src]

Get enumerated values variant

pub fn is_tce_0(&self) -> bool[src]

Checks if the value of the field is TCE_0

pub fn is_tce_1(&self) -> bool[src]

Checks if the value of the field is TCE_1

impl R<bool, TEN_A>[src]

pub fn variant(&self) -> TEN_A[src]

Get enumerated values variant

pub fn is_ten_0(&self) -> bool[src]

Checks if the value of the field is TEN_0

pub fn is_ten_1(&self) -> bool[src]

Checks if the value of the field is TEN_1

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

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

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

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

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

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

Bit 13 - Quadrature Decoder Negative Signal

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

Bit 14 - Test Counter Enable

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

Bit 15 - Test Mode Enable

impl R<bool, UPDHLD_A>[src]

pub fn variant(&self) -> UPDHLD_A[src]

Get enumerated values variant

pub fn is_updhld_0(&self) -> bool[src]

Checks if the value of the field is UPDHLD_0

pub fn is_updhld_1(&self) -> bool[src]

Checks if the value of the field is UPDHLD_1

impl R<bool, UPDPOS_A>[src]

pub fn variant(&self) -> UPDPOS_A[src]

Get enumerated values variant

pub fn is_updpos_0(&self) -> bool[src]

Checks if the value of the field is UPDPOS_0

pub fn is_updpos_1(&self) -> bool[src]

Checks if the value of the field is UPDPOS_1

impl R<bool, MOD_A>[src]

pub fn variant(&self) -> MOD_A[src]

Get enumerated values variant

pub fn is_mod_0(&self) -> bool[src]

Checks if the value of the field is MOD_0

pub fn is_mod_1(&self) -> bool[src]

Checks if the value of the field is MOD_1

impl R<bool, DIR_A>[src]

pub fn variant(&self) -> DIR_A[src]

Get enumerated values variant

pub fn is_dir_0(&self) -> bool[src]

Checks if the value of the field is DIR_0

pub fn is_dir_1(&self) -> bool[src]

Checks if the value of the field is DIR_1

impl R<bool, RUIE_A>[src]

pub fn variant(&self) -> RUIE_A[src]

Get enumerated values variant

pub fn is_ruie_0(&self) -> bool[src]

Checks if the value of the field is RUIE_0

pub fn is_ruie_1(&self) -> bool[src]

Checks if the value of the field is RUIE_1

impl R<bool, RUIRQ_A>[src]

pub fn variant(&self) -> RUIRQ_A[src]

Get enumerated values variant

pub fn is_ruirq_0(&self) -> bool[src]

Checks if the value of the field is RUIRQ_0

pub fn is_ruirq_1(&self) -> bool[src]

Checks if the value of the field is RUIRQ_1

impl R<bool, ROIE_A>[src]

pub fn variant(&self) -> ROIE_A[src]

Get enumerated values variant

pub fn is_roie_0(&self) -> bool[src]

Checks if the value of the field is ROIE_0

pub fn is_roie_1(&self) -> bool[src]

Checks if the value of the field is ROIE_1

impl R<bool, ROIRQ_A>[src]

pub fn variant(&self) -> ROIRQ_A[src]

Get enumerated values variant

pub fn is_roirq_0(&self) -> bool[src]

Checks if the value of the field is ROIRQ_0

pub fn is_roirq_1(&self) -> bool[src]

Checks if the value of the field is ROIRQ_1

impl R<bool, REVMOD_A>[src]

pub fn variant(&self) -> REVMOD_A[src]

Get enumerated values variant

pub fn is_revmod_0(&self) -> bool[src]

Checks if the value of the field is REVMOD_0

pub fn is_revmod_1(&self) -> bool[src]

Checks if the value of the field is REVMOD_1

impl R<bool, OUTCTL_A>[src]

pub fn variant(&self) -> OUTCTL_A[src]

Get enumerated values variant

pub fn is_outctl_0(&self) -> bool[src]

Checks if the value of the field is OUTCTL_0

pub fn is_outctl_1(&self) -> bool[src]

Checks if the value of the field is OUTCTL_1

impl R<bool, SABIE_A>[src]

pub fn variant(&self) -> SABIE_A[src]

Get enumerated values variant

pub fn is_sabie_0(&self) -> bool[src]

Checks if the value of the field is SABIE_0

pub fn is_sabie_1(&self) -> bool[src]

Checks if the value of the field is SABIE_1

impl R<bool, SABIRQ_A>[src]

pub fn variant(&self) -> SABIRQ_A[src]

Get enumerated values variant

pub fn is_sabirq_0(&self) -> bool[src]

Checks if the value of the field is SABIRQ_0

pub fn is_sabirq_1(&self) -> bool[src]

Checks if the value of the field is SABIRQ_1

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

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

Bit 0 - Update Hold Registers

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

Bit 1 - Update Position Registers

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

Bit 2 - Enable Modulo Counting

pub fn dir(&self) -> DIR_R[src]

Bit 3 - Count Direction Flag

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

Bit 4 - Roll-under Interrupt Enable

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

Bit 5 - Roll-under Interrupt Request

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

Bit 6 - Roll-over Interrupt Enable

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

Bit 7 - Roll-over Interrupt Request

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

Bit 8 - Revolution Counter Modulus Enable

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

Bit 9 - Output Control

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

Bit 10 - Simultaneous PHASEA and PHASEB Change Interrupt Enable

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

Bit 11 - Simultaneous PHASEA and PHASEB Change Interrupt Request

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

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

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

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

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

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

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

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

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

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

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

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

Trait Implementations

impl<U, T, FI> PartialEq<FI> for R<U, T> where
    U: PartialEq,
    FI: Copy + Into<U>, 
[src]

Auto Trait Implementations

impl<U, T> Send for R<U, T> where
    T: Send,
    U: Send

impl<U, T> Sync for R<U, T> where
    T: Sync,
    U: Sync

impl<U, T> Unpin for R<U, T> where
    T: 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.