pub struct R(/* private fields */);
Expand description
Register SR
reader
Implementations§
Source§impl R
impl R
Sourcepub fn uif(&self) -> UIF_R
pub fn uif(&self) -> UIF_R
Bit 0 - Update interrupt flag This bit is set by hardware on an update event. It is cleared by software. At overflow regarding the repetition counter value (update if repetition counter = 0) and if the UDIS=0 in the TIMx_CR1 register. When CNT is reinitialized by software using the UG bit in TIMx_EGR register, if URS=0 and UDIS=0 in the TIMx_CR1 register. When CNT is reinitialized by a trigger event (refer to control register (TIM15_SMCR)), if URS=0 and UDIS=0 in the TIMx_CR1 register.
Sourcepub fn cc1if(&self) -> CC1IF_R
pub fn cc1if(&self) -> CC1IF_R
Bit 1 - Capture/Compare 1 interrupt flag This flag is set by hardware. It is cleared by software (input capture or output compare mode) or by reading the TIMx_CCR1 register (input capture mode only). If channel CC1 is configured as output: this flag is set when the content of the counter TIMx_CNT matches the content of the TIMx_CCR1 register. When the content of TIMx_CCR1 is greater than the content of TIMx_ARR, the CC1IF bit goes high on the counter overflow (in up-counting and up/down-counting modes) or underflow (in down-counting mode). There are 3 possible options for flag setting in center-aligned mode, refer to the CMS bits in the TIMx_CR1 register for the full description. If channel CC1 is configured as input: this bit is set when counter value has been captured in TIMx_CCR1 register (an edge has been detected on IC1, as per the edge sensitivity defined with the CC1P and CC1NP bits setting, in TIMx_CCER).
Sourcepub fn cc2if(&self) -> CC2IF_R
pub fn cc2if(&self) -> CC2IF_R
Bit 2 - Capture/Compare 2 interrupt flag refer to CC1IF description
Sourcepub fn comif(&self) -> COMIF_R
pub fn comif(&self) -> COMIF_R
Bit 5 - COM interrupt flag This flag is set by hardware on a COM event (once the capture/compare control bits âCCxE, CCxNE, OCxMâ have been updated). It is cleared by software.
Sourcepub fn tif(&self) -> TIF_R
pub fn tif(&self) -> TIF_R
Bit 6 - Trigger interrupt flag This flag is set by hardware on the TRG trigger event (active edge detected on TRGI input when the slave mode controller is enabled in all modes but gated mode, both edges in case gated mode is selected). It is set when the counter starts or stops when gated mode is selected. It is cleared by software.
Sourcepub fn bif(&self) -> BIF_R
pub fn bif(&self) -> BIF_R
Bit 7 - Break interrupt flag This flag is set by hardware as soon as the break input goes active. It can be cleared by software if the break input is not active.