Type Alias gd32e1::gd32e103::timer0::chctl2::W

source ·
pub type W = W<Chctl2Spec>;
Expand description

Register CHCTL2 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn ch0en(&mut self) -> Ch0enW<'_, Chctl2Spec>

Bit 0 - Channel 0 capture/compare function enable

source

pub fn ch0p(&mut self) -> Ch0pW<'_, Chctl2Spec>

Bit 1 - Channel 0 capture/compare function polarity

source

pub fn ch0nen(&mut self) -> Ch0nenW<'_, Chctl2Spec>

Bit 2 - Channel 0 complementary output enable

source

pub fn ch0np(&mut self) -> Ch0npW<'_, Chctl2Spec>

Bit 3 - Channel 0 complementary output polarity

source

pub fn ch1en(&mut self) -> Ch1enW<'_, Chctl2Spec>

Bit 4 - Channel 1 capture/compare function enable

source

pub fn ch1p(&mut self) -> Ch1pW<'_, Chctl2Spec>

Bit 5 - Channel 1 capture/compare function polarity

source

pub fn ch1nen(&mut self) -> Ch1nenW<'_, Chctl2Spec>

Bit 6 - Channel 1 complementary output enable

source

pub fn ch1np(&mut self) -> Ch1npW<'_, Chctl2Spec>

Bit 7 - Channel 1 complementary output polarity

source

pub fn ch2en(&mut self) -> Ch2enW<'_, Chctl2Spec>

Bit 8 - Channel 2 capture/compare function enable

source

pub fn ch2p(&mut self) -> Ch2pW<'_, Chctl2Spec>

Bit 9 - Channel 2 capture/compare function polarity

source

pub fn ch2nen(&mut self) -> Ch2nenW<'_, Chctl2Spec>

Bit 10 - Channel 2 complementary output enable

source

pub fn ch2np(&mut self) -> Ch2npW<'_, Chctl2Spec>

Bit 11 - Channel 2 complementary output polarity

source

pub fn ch3en(&mut self) -> Ch3enW<'_, Chctl2Spec>

Bit 12 - Channel 3 capture/compare function enable

source

pub fn ch3p(&mut self) -> Ch3pW<'_, Chctl2Spec>

Bit 13 - Channel 3 capture/compare function polarity