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

pub fn comparison_1(&self) -> COMPARISON_1_R[src]

Bits 0:15 - Comparison Value 1

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

pub fn comparison_2(&self) -> COMPARISON_2_R[src]

Bits 0:15 - Comparison Value 2

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

pub fn capture(&self) -> CAPTURE_R[src]

Bits 0:15 - Capture Value

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

pub fn load(&self) -> LOAD_R[src]

Bits 0:15 - Timer Load Register

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

pub fn hold(&self) -> HOLD_R[src]

Bits 0:15 - This read/write register stores the counter's values of specific channels whenever any of the four counters within a module is read

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

pub fn counter(&self) -> COUNTER_R[src]

Bits 0:15 - This read/write register is the counter for the corresponding channel in a timer module.

impl R<u8, OUTMODE_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is OUTMODE_0

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

Checks if the value of the field is OUTMODE_1

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

Checks if the value of the field is OUTMODE_2

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

Checks if the value of the field is OUTMODE_3

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

Checks if the value of the field is OUTMODE_4

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

Checks if the value of the field is OUTMODE_5

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

Checks if the value of the field is OUTMODE_6

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

Checks if the value of the field is OUTMODE_7

impl R<bool, COINIT_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is COINIT_0

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

Checks if the value of the field is COINIT_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, LENGTH_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is LENGTH_0

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

Checks if the value of the field is LENGTH_1

impl R<bool, ONCE_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is ONCE_0

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

Checks if the value of the field is ONCE_1

impl R<u8, SCS_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is SCS_0

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

Checks if the value of the field is SCS_1

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

Checks if the value of the field is SCS_2

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

Checks if the value of the field is SCS_3

impl R<u8, PCS_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is PCS_0

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

Checks if the value of the field is PCS_1

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

Checks if the value of the field is PCS_2

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

Checks if the value of the field is PCS_3

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

Checks if the value of the field is PCS_4

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

Checks if the value of the field is PCS_5

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

Checks if the value of the field is PCS_6

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

Checks if the value of the field is PCS_7

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

Checks if the value of the field is PCS_8

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

Checks if the value of the field is PCS_9

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

Checks if the value of the field is PCS_10

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

Checks if the value of the field is PCS_11

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

Checks if the value of the field is PCS_12

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

Checks if the value of the field is PCS_13

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

Checks if the value of the field is PCS_14

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

Checks if the value of the field is PCS_15

impl R<u8, CM_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is CM_0

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

Checks if the value of the field is CM_1

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

Checks if the value of the field is CM_2

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

Checks if the value of the field is CM_3

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

Checks if the value of the field is CM_4

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

Checks if the value of the field is CM_5

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

Checks if the value of the field is CM_6

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

Checks if the value of the field is CM_7

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

pub fn outmode(&self) -> OUTMODE_R[src]

Bits 0:2 - Output Mode

pub fn coinit(&self) -> COINIT_R[src]

Bit 3 - Co-Channel Initialization

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

Bit 4 - Count Direction

pub fn length(&self) -> LENGTH_R[src]

Bit 5 - Count Length

pub fn once(&self) -> ONCE_R[src]

Bit 6 - Count Once

pub fn scs(&self) -> SCS_R[src]

Bits 7:8 - Secondary Count Source

pub fn pcs(&self) -> PCS_R[src]

Bits 9:12 - Primary Count Source

pub fn cm(&self) -> CM_R[src]

Bits 13:15 - Count Mode

impl R<bool, OEN_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is OEN_0

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

Checks if the value of the field is OEN_1

impl R<bool, OPS_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is OPS_0

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

Checks if the value of the field is OPS_1

impl R<u8, CAPTURE_MODE_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is CAPTURE_MODE_0

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

Checks if the value of the field is CAPTURE_MODE_1

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

Checks if the value of the field is CAPTURE_MODE_2

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

Checks if the value of the field is CAPTURE_MODE_3

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

pub fn oen(&self) -> OEN_R[src]

Bit 0 - Output Enable

pub fn ops(&self) -> OPS_R[src]

Bit 1 - Output Polarity Select

pub fn force(&self) -> FORCE_R[src]

Bit 2 - Force OFLAG Output

pub fn val(&self) -> VAL_R[src]

Bit 3 - Forced OFLAG Value

pub fn eeof(&self) -> EEOF_R[src]

Bit 4 - Enable External OFLAG Force

pub fn mstr(&self) -> MSTR_R[src]

Bit 5 - Master Mode

pub fn capture_mode(&self) -> CAPTURE_MODE_R[src]

Bits 6:7 - Input Capture Mode

pub fn input(&self) -> INPUT_R[src]

Bit 8 - External Input Signal

pub fn ips(&self) -> IPS_R[src]

Bit 9 - Input Polarity Select

pub fn iefie(&self) -> IEFIE_R[src]

Bit 10 - Input Edge Flag Interrupt Enable

pub fn ief(&self) -> IEF_R[src]

Bit 11 - Input Edge Flag

pub fn tofie(&self) -> TOFIE_R[src]

Bit 12 - Timer Overflow Flag Interrupt Enable

pub fn tof(&self) -> TOF_R[src]

Bit 13 - Timer Overflow Flag

pub fn tcfie(&self) -> TCFIE_R[src]

Bit 14 - Timer Compare Flag Interrupt Enable

pub fn tcf(&self) -> TCF_R[src]

Bit 15 - Timer Compare Flag

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

pub fn comparator_load_1(&self) -> COMPARATOR_LOAD_1_R[src]

Bits 0:15 - This read/write register is the comparator 1 preload value for the COMP1 register for the corresponding channel in a timer module

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

pub fn comparator_load_2(&self) -> COMPARATOR_LOAD_2_R[src]

Bits 0:15 - This read/write register is the comparator 2 preload value for the COMP2 register for the corresponding channel in a timer module

impl R<u8, CL1_A>[src]

pub fn variant(&self) -> Variant<u8, CL1_A>[src]

Get enumerated values variant

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

Checks if the value of the field is CL1_0

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

Checks if the value of the field is CL1_1

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

Checks if the value of the field is CL1_2

impl R<u8, CL2_A>[src]

pub fn variant(&self) -> Variant<u8, CL2_A>[src]

Get enumerated values variant

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

Checks if the value of the field is CL2_0

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

Checks if the value of the field is CL2_1

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

Checks if the value of the field is CL2_2

impl R<bool, UP_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is UP_0

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

Checks if the value of the field is UP_1

impl R<bool, TCI_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is TCI_0

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

Checks if the value of the field is TCI_1

impl R<bool, ROC_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is ROC_0

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

Checks if the value of the field is ROC_1

impl R<bool, ALT_LOAD_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is ALT_LOAD_0

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

Checks if the value of the field is ALT_LOAD_1

impl R<bool, FAULT_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is FAULT_0

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

Checks if the value of the field is FAULT_1

impl R<u8, DBG_EN_A>[src]

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

Get enumerated values variant

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

Checks if the value of the field is DBG_EN_0

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

Checks if the value of the field is DBG_EN_1

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

Checks if the value of the field is DBG_EN_2

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

Checks if the value of the field is DBG_EN_3

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

pub fn cl1(&self) -> CL1_R[src]

Bits 0:1 - Compare Load Control 1

pub fn cl2(&self) -> CL2_R[src]

Bits 2:3 - Compare Load Control 2

pub fn tcf1(&self) -> TCF1_R[src]

Bit 4 - Timer Compare 1 Interrupt Flag

pub fn tcf2(&self) -> TCF2_R[src]

Bit 5 - Timer Compare 2 Interrupt Flag

pub fn tcf1en(&self) -> TCF1EN_R[src]

Bit 6 - Timer Compare 1 Interrupt Enable

pub fn tcf2en(&self) -> TCF2EN_R[src]

Bit 7 - Timer Compare 2 Interrupt Enable

pub fn up(&self) -> UP_R[src]

Bit 9 - Counting Direction Indicator

pub fn tci(&self) -> TCI_R[src]

Bit 10 - Triggered Count Initialization Control

pub fn roc(&self) -> ROC_R[src]

Bit 11 - Reload on Capture

pub fn alt_load(&self) -> ALT_LOAD_R[src]

Bit 12 - Alternative Load Enable

pub fn fault(&self) -> FAULT_R[src]

Bit 13 - Fault Enable

pub fn dbg_en(&self) -> DBG_EN_R[src]

Bits 14:15 - Debug Actions Enable

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, _DMA>>[src]

pub fn iefde(&self) -> IEFDE_R[src]

Bit 0 - Input Edge Flag DMA Enable

pub fn cmpld1de(&self) -> CMPLD1DE_R[src]

Bit 1 - Comparator Preload Register 1 DMA Enable

pub fn cmpld2de(&self) -> CMPLD2DE_R[src]

Bit 2 - Comparator Preload Register 2 DMA Enable

impl R<u8, ENBL_A>[src]

pub fn variant(&self) -> Variant<u8, ENBL_A>[src]

Get enumerated values variant

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

Checks if the value of the field is ENBL_0

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

Checks if the value of the field is ENBL_1

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

pub fn enbl(&self) -> ENBL_R[src]

Bits 0:3 - Timer Channel Enable

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.