pub struct W(_);
Expand description
Register SR
writer
Implementations
sourceimpl W
impl W
sourcepub fn uif(&mut self) -> UIF_W<'_, 0>
pub fn uif(&mut self) -> UIF_W<'_, 0>
Bit 0 - Update interrupt flag This bit is set by hardware on an update event. It is cleared by software. At overflow or underflow 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 (TIM1_SMCRTIMx_SMCR)N/A), if URS=0 and UDIS=0 in the TIMx_CR1 register.
sourcepub fn cc1if(&mut self) -> CC1IF_W<'_, 1>
pub fn cc1if(&mut self) -> CC1IF_W<'_, 1>
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 he 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(&mut self) -> CC2IF_W<'_, 2>
pub fn cc2if(&mut self) -> CC2IF_W<'_, 2>
Bit 2 - Capture/Compare 2 interrupt flag Refer to CC1IF description
sourcepub fn cc3if(&mut self) -> CC3IF_W<'_, 3>
pub fn cc3if(&mut self) -> CC3IF_W<'_, 3>
Bit 3 - Capture/Compare 3 interrupt flag Refer to CC1IF description
sourcepub fn cc4if(&mut self) -> CC4IF_W<'_, 4>
pub fn cc4if(&mut self) -> CC4IF_W<'_, 4>
Bit 4 - Capture/Compare 4 interrupt flag Refer to CC1IF description
sourcepub fn comif(&mut self) -> COMIF_W<'_, 5>
pub fn comif(&mut self) -> COMIF_W<'_, 5>
Bit 5 - COM interrupt flag This flag is set by hardware on COM event (when Capture/compare Control bits - CCxE, CCxNE, OCxM - have been updated). It is cleared by software.
sourcepub fn tif(&mut self) -> TIF_W<'_, 6>
pub fn tif(&mut self) -> TIF_W<'_, 6>
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. It is set when the counter starts or stops when gated mode is selected. It is cleared by software.
sourcepub fn bif(&mut self) -> BIF_W<'_, 7>
pub fn bif(&mut self) -> BIF_W<'_, 7>
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.
sourcepub fn b2if(&mut self) -> B2IF_W<'_, 8>
pub fn b2if(&mut self) -> B2IF_W<'_, 8>
Bit 8 - Break 2 interrupt flag This flag is set by hardware as soon as the break 2 input goes active. It can be cleared by software if the break 2 input is not active.
sourcepub fn cc1of(&mut self) -> CC1OF_W<'_, 9>
pub fn cc1of(&mut self) -> CC1OF_W<'_, 9>
Bit 9 - Capture/Compare 1 overcapture flag This flag is set by hardware only when the corresponding channel is configured in input capture mode. It is cleared by software by writing it to ’0â.
sourcepub fn cc2of(&mut self) -> CC2OF_W<'_, 10>
pub fn cc2of(&mut self) -> CC2OF_W<'_, 10>
Bit 10 - Capture/Compare 2 overcapture flag Refer to CC1OF description
sourcepub fn cc3of(&mut self) -> CC3OF_W<'_, 11>
pub fn cc3of(&mut self) -> CC3OF_W<'_, 11>
Bit 11 - Capture/Compare 3 overcapture flag Refer to CC1OF description
sourcepub fn cc4of(&mut self) -> CC4OF_W<'_, 12>
pub fn cc4of(&mut self) -> CC4OF_W<'_, 12>
Bit 12 - Capture/Compare 4 overcapture flag Refer to CC1OF description
sourcepub fn sbif(&mut self) -> SBIF_W<'_, 13>
pub fn sbif(&mut self) -> SBIF_W<'_, 13>
Bit 13 - System Break interrupt flag This flag is set by hardware as soon as the system break input goes active. It can be cleared by software if the system break input is not active. This flag must be reset to re-start PWM operation.
sourcepub fn cc5if(&mut self) -> CC5IF_W<'_, 16>
pub fn cc5if(&mut self) -> CC5IF_W<'_, 16>
Bit 16 - Compare 5 interrupt flag Refer to CC1IF description (Note: Channel 5 can only be configured as output)
Methods from Deref<Target = W<SR_SPEC>>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more