Type Alias gd32f1::gd32f130::timer0::chctl0_output::Ch0comctlW
source · pub type Ch0comctlW<'a, REG> = FieldWriterSafe<'a, REG, 3, Ch0comctl>;
Expand description
Field CH0COMCTL
writer - Channel 0 compare output control
Aliased Type§
struct Ch0comctlW<'a, REG> { /* private fields */ }
Implementations§
source§impl<'a, REG> Ch0comctlW<'a, REG>
impl<'a, REG> Ch0comctlW<'a, REG>
sourcepub fn frozen(self) -> &'a mut W<REG>
pub fn frozen(self) -> &'a mut W<REG>
The comparison between the output compare register CHyCV and the counter CNT has no effect on the outputs
sourcepub fn active_on_match(self) -> &'a mut W<REG>
pub fn active_on_match(self) -> &'a mut W<REG>
Set channel to active level on match. OxCPRE signal is forced high when the counter matches the capture/compare register CHyCV
sourcepub fn inactive_on_match(self) -> &'a mut W<REG>
pub fn inactive_on_match(self) -> &'a mut W<REG>
Set channel to inactive level on match. OxCPRE signal is forced low when the counter matches the capture/compare register CHyCV
sourcepub fn force_inactive(self) -> &'a mut W<REG>
pub fn force_inactive(self) -> &'a mut W<REG>
OxCPRE is forced low
sourcepub fn force_active(self) -> &'a mut W<REG>
pub fn force_active(self) -> &'a mut W<REG>
OxCPRE is forced high