pub type OCM_R = FieldReader<OC1M>;
Expand description
Field OCM(1-2)
reader - Output compare %s mode
Aliased Type§
struct OCM_R { /* private fields */ }
Implementations§
Source§impl OCM_R
impl OCM_R
Sourcepub fn is_frozen(&self) -> bool
pub fn is_frozen(&self) -> bool
The comparison between the output compare register TIMx_CCRy and the counter TIMx_CNT has no effect on the outputs
Sourcepub fn is_active_on_match(&self) -> bool
pub fn is_active_on_match(&self) -> bool
Set channel to active level on match. OCyREF signal is forced high when the counter matches the capture/compare register
Sourcepub fn is_inactive_on_match(&self) -> bool
pub fn is_inactive_on_match(&self) -> bool
Set channel to inactive level on match. OCyREF signal is forced low when the counter matches the capture/compare register
Sourcepub fn is_force_inactive(&self) -> bool
pub fn is_force_inactive(&self) -> bool
OCyREF is forced low
Sourcepub fn is_force_active(&self) -> bool
pub fn is_force_active(&self) -> bool
OCyREF is forced high
Sourcepub fn is_pwm_mode1(&self) -> bool
pub fn is_pwm_mode1(&self) -> bool
In upcounting, channel is active as long as TIMx_CNT<TIMx_CCRy else inactive. In downcounting, channel is inactive as long as TIMx_CNT>TIMx_CCRy else active
Sourcepub fn is_pwm_mode2(&self) -> bool
pub fn is_pwm_mode2(&self) -> bool
Inversely to PwmMode1