pub type Ch0comctlR = FieldReader<Ch0comctl>;
Expand description

Field CH0COMCTL reader - Channel 0 compare output control

Aliased Type§

struct Ch0comctlR { /* private fields */ }

Implementations§

source§

impl Ch0comctlR

source

pub const fn variant(&self) -> Ch0comctl

Get enumerated values variant

source

pub fn is_frozen(&self) -> bool

The comparison between the output compare register CHyCV and the counter CNT has no effect on the outputs

source

pub fn is_active_on_match(&self) -> bool

Set channel to active level on match. OxCPRE signal is forced high when the counter matches the capture/compare register CHyCV

source

pub fn is_inactive_on_match(&self) -> bool

Set channel to inactive level on match. OxCPRE signal is forced low when the counter matches the capture/compare register CHyCV

source

pub fn is_toggle(&self) -> bool

OxCPRE toggles when CNT=CHyCV

source

pub fn is_force_inactive(&self) -> bool

OxCPRE is forced low

source

pub fn is_force_active(&self) -> bool

OxCPRE is forced high

source

pub fn is_pwm_mode0(&self) -> bool

In upcounting, channel is active as long as CNT<CHyCV else inactive. In downcounting, channel is inactive as long as CNT>CHyCV else active

source

pub fn is_pwm_mode1(&self) -> bool

Inversely to PwmMode0