Struct Isr
#[repr(transparent)]pub struct Isr(pub u32);Expand description
LPTIM interrupt and status register.
Tuple Fields§
§0: u32Implementations§
§impl Isr
impl Isr
pub const fn ccif(&self, n: usize) -> bool
pub const fn ccif(&self, n: usize) -> bool
Compare match (CMPM). Set by hardware to inform application that LPTIM_CNT register value reached the LPTIM_CMP register’s value. Cleared by writing 1 to the CCCF (CMPMCF) bit in the LPTIM_ICR register.
pub const fn set_ccif(&mut self, n: usize, val: bool)
pub const fn set_ccif(&mut self, n: usize, val: bool)
Compare match (CMPM). Set by hardware to inform application that LPTIM_CNT register value reached the LPTIM_CMP register’s value. Cleared by writing 1 to the CCCF (CMPMCF) bit in the LPTIM_ICR register.
pub const fn arrm(&self) -> bool
pub const fn arrm(&self) -> bool
Autoreload match ARRM is set by hardware to inform application that LPTIM_CNT register’s value reached the LPTIM_ARR register’s value. ARRM flag can be cleared by writing 1 to the ARRMCF bit in the LPTIM_ICR register.
pub const fn set_arrm(&mut self, val: bool)
pub const fn set_arrm(&mut self, val: bool)
Autoreload match ARRM is set by hardware to inform application that LPTIM_CNT register’s value reached the LPTIM_ARR register’s value. ARRM flag can be cleared by writing 1 to the ARRMCF bit in the LPTIM_ICR register.
pub const fn exttrig(&self) -> bool
pub const fn exttrig(&self) -> bool
External trigger edge event EXTTRIG 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. EXTTRIG flag can be cleared by writing 1 to the EXTTRIGCF bit in the LPTIM_ICR register.
pub const fn set_exttrig(&mut self, val: bool)
pub const fn set_exttrig(&mut self, val: bool)
External trigger edge event EXTTRIG 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. EXTTRIG flag can be cleared by writing 1 to the EXTTRIGCF bit in the LPTIM_ICR register.
pub const fn cmpok(&self, n: usize) -> bool
pub const fn cmpok(&self, n: usize) -> bool
Compare register update OK. CMPOK is set by hardware to inform application that the APB bus write operation to the LPTIM_CMP register has been successfully completed. CMPOK flag can be cleared by writing 1 to the CMPOKCF bit in the LPTIM_ICR register.
pub const fn set_cmpok(&mut self, n: usize, val: bool)
pub const fn set_cmpok(&mut self, n: usize, val: bool)
Compare register update OK. CMPOK is set by hardware to inform application that the APB bus write operation to the LPTIM_CMP register has been successfully completed. CMPOK flag can be cleared by writing 1 to the CMPOKCF bit in the LPTIM_ICR register.
pub const fn arrok(&self) -> bool
pub const fn arrok(&self) -> bool
Autoreload register update OK ARROK is set by hardware to inform application that the APB bus write operation to the LPTIM_ARR register has been successfully completed. ARROK flag can be cleared by writing 1 to the ARROKCF bit in the LPTIM_ICR register.
pub const fn set_arrok(&mut self, val: bool)
pub const fn set_arrok(&mut self, val: bool)
Autoreload register update OK ARROK is set by hardware to inform application that the APB bus write operation to the LPTIM_ARR register has been successfully completed. ARROK flag can be cleared by writing 1 to the ARROKCF bit in the LPTIM_ICR register.
pub const fn up(&self) -> bool
pub const fn up(&self) -> bool
Counter direction change down to up In Encoder mode, UP bit is set by hardware to inform application that the counter direction has changed from down to up. UP flag can be cleared by writing 1 to the UPCF bit in the LPTIM_ICR register. Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to.
pub const fn set_up(&mut self, val: bool)
pub const fn set_up(&mut self, val: bool)
Counter direction change down to up In Encoder mode, UP bit is set by hardware to inform application that the counter direction has changed from down to up. UP flag can be cleared by writing 1 to the UPCF bit in the LPTIM_ICR register. Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to.
pub const fn down(&self) -> bool
pub const fn down(&self) -> bool
Counter direction change up to down In Encoder mode, DOWN bit is set by hardware to inform application that the counter direction has changed from up to down. DOWN flag can be cleared by writing 1 to the DOWNCF bit in the LPTIM_ICR register. Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to.
pub const fn set_down(&mut self, val: bool)
pub const fn set_down(&mut self, val: bool)
Counter direction change up to down In Encoder mode, DOWN bit is set by hardware to inform application that the counter direction has changed from up to down. DOWN flag can be cleared by writing 1 to the DOWNCF bit in the LPTIM_ICR register. Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to.