Type Alias OCM_R

Source
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

Source

pub const fn variant(&self) -> OC1M

Get enumerated values variant

Source

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

Source

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

Source

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

Source

pub fn is_toggle(&self) -> bool

OCyREF toggles when TIMx_CNT=TIMx_CCRy

Source

pub fn is_force_inactive(&self) -> bool

OCyREF is forced low

Source

pub fn is_force_active(&self) -> bool

OCyREF is forced high

Source

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

Source

pub fn is_pwm_mode2(&self) -> bool

Inversely to PwmMode1