pub type R = R<IsrSpec>;Expand description
Register ISR reader
Aliased Type§
pub struct R { /* private fields */ }Implementations§
Source§impl R
impl R
Sourcepub fn ue(&self) -> UeR
pub fn ue(&self) -> UeR
Bit 0 - LPTIM update event occurred UE is set by hardware to inform application that an update event was generated when overflow occurred while repetition counter reached zero. UE flag can be cleared by writing 1 to the UECLR bit in the LPTIM_ICR register.
Sourcepub fn of(&self) -> OfR
pub fn of(&self) -> OfR
Bit 1 - Overflow occurred OF is set by hardware to inform application that LPTIM_CNT register’s value reached the LPTIM_ARR register’s value and count from zero again. OF flag can be cleared by writing 1 to the OFCLR bit in the LPTIM_ICR register.
Sourcepub fn oc(&self) -> OcR
pub fn oc(&self) -> OcR
Bit 2 - Output compare match The OC bit is set by hardware to inform application that LPTIM_CNT register value reached the LPTIM_CMP register’s value. OC flag can be cleared by writing 1 to the OCCLR bit in the LPTIM_ICR register.
Sourcepub fn et(&self) -> EtR
pub fn et(&self) -> EtR
Bit 3 - External trigger edge event ET is set by hardware to inform application that a valid edge on the selected external trigger input has occurred. If the trigger is ignored because the timer has already started, then this flag is not set. ET flag can be cleared by writing 1 to the ETCLR bit in the LPTIM_ICR register.
Sourcepub fn uewkup(&self) -> UewkupR
pub fn uewkup(&self) -> UewkupR
Bit 8 - Indicates update event wakeup occurred UEWKUP is set by hardware when an update event was generated (overflow occurred while repetition counter reached zero). To clear UEWKUP, first write 0 to the UEWE bit in the LPTIM_IER register to disable, then write 1 to the WKUPCLR bit in the LPTIM_ICR register.
Sourcepub fn ofwkup(&self) -> OfwkupR
pub fn ofwkup(&self) -> OfwkupR
Bit 9 - Indicates overflow wakeup occurred OFWKUP is set by hardware when LPTIM_CNT register’s value reached the LPTIM_ARR register’s value and count from zero again. To clear OFWKUP, first write 0 to the OFWE bit in the LPTIM_IER register to disable, then write 1 to the WKUPCLR bit in the LPTIM_ICR register.
Sourcepub fn ocwkup(&self) -> OcwkupR
pub fn ocwkup(&self) -> OcwkupR
Bit 10 - Indicates output compare wakeup occurred The OCWKUP bit is set by hardware when LPTIM_CNT register value reached the LPTIM_CMP register’s value. To clear OCWKUP, first write 0 to the OCWE bit in the LPTIM_IER register to disable, then write 1 to the WKUPCLR bit in the LPTIM_ICR register.