[−][src]Struct imxrt1062_gpt1::R
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]
U: Copy,
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, EN_A>
[src]
pub fn variant(&self) -> EN_A
[src]
Get enumerated values variant
pub fn is_en_0(&self) -> bool
[src]
Checks if the value of the field is EN_0
pub fn is_en_1(&self) -> bool
[src]
Checks if the value of the field is EN_1
impl R<bool, ENMOD_A>
[src]
pub fn variant(&self) -> ENMOD_A
[src]
Get enumerated values variant
pub fn is_enmod_0(&self) -> bool
[src]
Checks if the value of the field is ENMOD_0
pub fn is_enmod_1(&self) -> bool
[src]
Checks if the value of the field is ENMOD_1
impl R<bool, DBGEN_A>
[src]
pub fn variant(&self) -> DBGEN_A
[src]
Get enumerated values variant
pub fn is_dbgen_0(&self) -> bool
[src]
Checks if the value of the field is DBGEN_0
pub fn is_dbgen_1(&self) -> bool
[src]
Checks if the value of the field is DBGEN_1
impl R<bool, WAITEN_A>
[src]
pub fn variant(&self) -> WAITEN_A
[src]
Get enumerated values variant
pub fn is_waiten_0(&self) -> bool
[src]
Checks if the value of the field is WAITEN_0
pub fn is_waiten_1(&self) -> bool
[src]
Checks if the value of the field is WAITEN_1
impl R<bool, DOZEEN_A>
[src]
pub fn variant(&self) -> DOZEEN_A
[src]
Get enumerated values variant
pub fn is_dozeen_0(&self) -> bool
[src]
Checks if the value of the field is DOZEEN_0
pub fn is_dozeen_1(&self) -> bool
[src]
Checks if the value of the field is DOZEEN_1
impl R<bool, STOPEN_A>
[src]
pub fn variant(&self) -> STOPEN_A
[src]
Get enumerated values variant
pub fn is_stopen_0(&self) -> bool
[src]
Checks if the value of the field is STOPEN_0
pub fn is_stopen_1(&self) -> bool
[src]
Checks if the value of the field is STOPEN_1
impl R<u8, CLKSRC_A>
[src]
pub fn variant(&self) -> Variant<u8, CLKSRC_A>
[src]
Get enumerated values variant
pub fn is_clksrc_0(&self) -> bool
[src]
Checks if the value of the field is CLKSRC_0
pub fn is_clksrc_1(&self) -> bool
[src]
Checks if the value of the field is CLKSRC_1
pub fn is_clksrc_2(&self) -> bool
[src]
Checks if the value of the field is CLKSRC_2
pub fn is_clksrc_3(&self) -> bool
[src]
Checks if the value of the field is CLKSRC_3
pub fn is_clksrc_4(&self) -> bool
[src]
Checks if the value of the field is CLKSRC_4
pub fn is_clksrc_5(&self) -> bool
[src]
Checks if the value of the field is CLKSRC_5
impl R<bool, FRR_A>
[src]
pub fn variant(&self) -> FRR_A
[src]
Get enumerated values variant
pub fn is_frr_0(&self) -> bool
[src]
Checks if the value of the field is FRR_0
pub fn is_frr_1(&self) -> bool
[src]
Checks if the value of the field is FRR_1
impl R<bool, EN_24M_A>
[src]
pub fn variant(&self) -> EN_24M_A
[src]
Get enumerated values variant
pub fn is_en_24m_0(&self) -> bool
[src]
Checks if the value of the field is EN_24M_0
pub fn is_en_24m_1(&self) -> bool
[src]
Checks if the value of the field is EN_24M_1
impl R<bool, SWR_A>
[src]
pub fn variant(&self) -> SWR_A
[src]
Get enumerated values variant
pub fn is_swr_0(&self) -> bool
[src]
Checks if the value of the field is SWR_0
pub fn is_swr_1(&self) -> bool
[src]
Checks if the value of the field is SWR_1
impl R<u8, IM2_A>
[src]
pub fn variant(&self) -> IM2_A
[src]
Get enumerated values variant
pub fn is_im2_0(&self) -> bool
[src]
Checks if the value of the field is IM2_0
pub fn is_im2_1(&self) -> bool
[src]
Checks if the value of the field is IM2_1
pub fn is_im2_2(&self) -> bool
[src]
Checks if the value of the field is IM2_2
pub fn is_im2_3(&self) -> bool
[src]
Checks if the value of the field is IM2_3
impl R<u8, OM3_A>
[src]
pub fn variant(&self) -> Variant<u8, OM3_A>
[src]
Get enumerated values variant
pub fn is_om3_0(&self) -> bool
[src]
Checks if the value of the field is OM3_0
pub fn is_om3_1(&self) -> bool
[src]
Checks if the value of the field is OM3_1
pub fn is_om3_2(&self) -> bool
[src]
Checks if the value of the field is OM3_2
pub fn is_om3_3(&self) -> bool
[src]
Checks if the value of the field is OM3_3
pub fn is_om3_4(&self) -> bool
[src]
Checks if the value of the field is OM3_4
impl R<bool, FO3_A>
[src]
pub fn variant(&self) -> FO3_A
[src]
Get enumerated values variant
pub fn is_fo3_0(&self) -> bool
[src]
Checks if the value of the field is FO3_0
pub fn is_fo3_1(&self) -> bool
[src]
Checks if the value of the field is FO3_1
impl R<u32, Reg<u32, _CR>>
[src]
pub fn en(&self) -> EN_R
[src]
Bit 0 - GPT Enable
pub fn enmod(&self) -> ENMOD_R
[src]
Bit 1 - GPT Enable mode
pub fn dbgen(&self) -> DBGEN_R
[src]
Bit 2 - GPT debug mode enable
pub fn waiten(&self) -> WAITEN_R
[src]
Bit 3 - GPT Wait Mode enable
pub fn dozeen(&self) -> DOZEEN_R
[src]
Bit 4 - GPT Doze Mode Enable
pub fn stopen(&self) -> STOPEN_R
[src]
Bit 5 - GPT Stop Mode enable
pub fn clksrc(&self) -> CLKSRC_R
[src]
Bits 6:8 - Clock Source select
pub fn frr(&self) -> FRR_R
[src]
Bit 9 - Free-Run or Restart mode
pub fn en_24m(&self) -> EN_24M_R
[src]
Bit 10 - Enable 24 MHz clock input from crystal
pub fn swr(&self) -> SWR_R
[src]
Bit 15 - Software reset
pub fn im1(&self) -> IM1_R
[src]
Bits 16:17 - See IM2
pub fn im2(&self) -> IM2_R
[src]
Bits 18:19 - IM2 (bits 19-18, Input Capture Channel 2 operating mode) IM1 (bits 17-16, Input Capture Channel 1 operating mode) The IMn bit field determines the transition on the input pin (for Input capture channel n), which will trigger a capture event
pub fn om1(&self) -> OM1_R
[src]
Bits 20:22 - See OM3
pub fn om2(&self) -> OM2_R
[src]
Bits 23:25 - See OM3
pub fn om3(&self) -> OM3_R
[src]
Bits 26:28 - OM3 (bits 28-26) controls the Output Compare Channel 3 operating mode
pub fn fo1(&self) -> FO1_R
[src]
Bit 29 - See F03
pub fn fo2(&self) -> FO2_R
[src]
Bit 30 - See F03
pub fn fo3(&self) -> FO3_R
[src]
Bit 31 - FO3 Force Output Compare Channel 3 FO2 Force Output Compare Channel 2 FO1 Force Output Compare Channel 1 The FOn bit causes the pin action programmed for the timer Output Compare n pin (according to the OMn bits in this register)
impl R<u16, PRESCALER_A>
[src]
pub fn variant(&self) -> Variant<u16, PRESCALER_A>
[src]
Get enumerated values variant
pub fn is_prescaler_0(&self) -> bool
[src]
Checks if the value of the field is PRESCALER_0
pub fn is_prescaler_1(&self) -> bool
[src]
Checks if the value of the field is PRESCALER_1
pub fn is_prescaler_4095(&self) -> bool
[src]
Checks if the value of the field is PRESCALER_4095
impl R<u8, PRESCALER24M_A>
[src]
pub fn variant(&self) -> Variant<u8, PRESCALER24M_A>
[src]
Get enumerated values variant
pub fn is_prescaler24m_0(&self) -> bool
[src]
Checks if the value of the field is PRESCALER24M_0
pub fn is_prescaler24m_1(&self) -> bool
[src]
Checks if the value of the field is PRESCALER24M_1
pub fn is_prescaler24m_15(&self) -> bool
[src]
Checks if the value of the field is PRESCALER24M_15
impl R<u32, Reg<u32, _PR>>
[src]
pub fn prescaler(&self) -> PRESCALER_R
[src]
Bits 0:11 - Prescaler bits
pub fn prescaler24m(&self) -> PRESCALER24M_R
[src]
Bits 12:15 - Prescaler bits
impl R<bool, OF3_A>
[src]
pub fn variant(&self) -> OF3_A
[src]
Get enumerated values variant
pub fn is_of3_0(&self) -> bool
[src]
Checks if the value of the field is OF3_0
pub fn is_of3_1(&self) -> bool
[src]
Checks if the value of the field is OF3_1
impl R<bool, IF2_A>
[src]
pub fn variant(&self) -> IF2_A
[src]
Get enumerated values variant
pub fn is_if2_0(&self) -> bool
[src]
Checks if the value of the field is IF2_0
pub fn is_if2_1(&self) -> bool
[src]
Checks if the value of the field is IF2_1
impl R<bool, ROV_A>
[src]
pub fn variant(&self) -> ROV_A
[src]
Get enumerated values variant
pub fn is_rov_0(&self) -> bool
[src]
Checks if the value of the field is ROV_0
pub fn is_rov_1(&self) -> bool
[src]
Checks if the value of the field is ROV_1
impl R<u32, Reg<u32, _SR>>
[src]
pub fn of1(&self) -> OF1_R
[src]
Bit 0 - See OF3
pub fn of2(&self) -> OF2_R
[src]
Bit 1 - See OF3
pub fn of3(&self) -> OF3_R
[src]
Bit 2 - OF3 Output Compare 3 Flag OF2 Output Compare 2 Flag OF1 Output Compare 1 Flag The OFn bit indicates that a compare event has occurred on Output Compare channel n
pub fn if1(&self) -> IF1_R
[src]
Bit 3 - See IF2
pub fn if2(&self) -> IF2_R
[src]
Bit 4 - IF2 Input capture 2 Flag IF1 Input capture 1 Flag The IFn bit indicates that a capture event has occurred on Input Capture channel n
pub fn rov(&self) -> ROV_R
[src]
Bit 5 - Rollover Flag
impl R<bool, OF3IE_A>
[src]
pub fn variant(&self) -> OF3IE_A
[src]
Get enumerated values variant
pub fn is_of3ie_0(&self) -> bool
[src]
Checks if the value of the field is OF3IE_0
pub fn is_of3ie_1(&self) -> bool
[src]
Checks if the value of the field is OF3IE_1
impl R<bool, IF2IE_A>
[src]
pub fn variant(&self) -> IF2IE_A
[src]
Get enumerated values variant
pub fn is_if2ie_0(&self) -> bool
[src]
Checks if the value of the field is IF2IE_0
pub fn is_if2ie_1(&self) -> bool
[src]
Checks if the value of the field is IF2IE_1
impl R<bool, ROVIE_A>
[src]
pub fn variant(&self) -> ROVIE_A
[src]
Get enumerated values variant
pub fn is_rovie_0(&self) -> bool
[src]
Checks if the value of the field is ROVIE_0
pub fn is_rovie_1(&self) -> bool
[src]
Checks if the value of the field is ROVIE_1
impl R<u32, Reg<u32, _IR>>
[src]
pub fn of1ie(&self) -> OF1IE_R
[src]
Bit 0 - See OF3IE
pub fn of2ie(&self) -> OF2IE_R
[src]
Bit 1 - See OF3IE
pub fn of3ie(&self) -> OF3IE_R
[src]
Bit 2 - OF3IE Output Compare 3 Interrupt Enable OF2IE Output Compare 2 Interrupt Enable OF1IE Output Compare 1 Interrupt Enable The OFnIE bit controls the Output Compare Channel n interrupt
pub fn if1ie(&self) -> IF1IE_R
[src]
Bit 3 - See IF2IE
pub fn if2ie(&self) -> IF2IE_R
[src]
Bit 4 - IF2IE Input capture 2 Interrupt Enable IF1IE Input capture 1 Interrupt Enable The IFnIE bit controls the IFnIE Input Capture n Interrupt Enable
pub fn rovie(&self) -> ROVIE_R
[src]
Bit 5 - Rollover Interrupt Enable. The ROVIE bit controls the Rollover interrupt.
impl R<u32, Reg<u32, _OCR1>>
[src]
impl R<u32, Reg<u32, _OCR2>>
[src]
impl R<u32, Reg<u32, _OCR3>>
[src]
impl R<u32, Reg<u32, _ICR1>>
[src]
impl R<u32, Reg<u32, _ICR2>>
[src]
impl R<u32, Reg<u32, _CNT>>
[src]
pub fn count(&self) -> COUNT_R
[src]
Bits 0:31 - Counter Value. The COUNT bits show the current count value of the GPT counter.
Trait Implementations
Auto Trait Implementations
impl<U, T> Send for R<U, T> where
T: Send,
U: Send,
T: Send,
U: Send,
impl<U, T> Sync for R<U, T> where
T: Sync,
U: Sync,
T: Sync,
U: Sync,
impl<U, T> Unpin for R<U, T> where
T: Unpin,
U: Unpin,
T: Unpin,
U: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,