Type Alias gd32f1::gd32f130::timer0::ctl0::CamW

source ·
pub type CamW<'a, REG> = FieldWriterSafe<'a, REG, 2, Cam>;
Expand description

Field CAM writer - Counter aligns mode selection

Aliased Type§

struct CamW<'a, REG> { /* private fields */ }

Implementations§

source§

impl<'a, REG> CamW<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

pub fn edge_aligned(self) -> &'a mut W<REG>

The counter counts up or down depending on the direction bit

source

pub fn center_aligned_counting_down(self) -> &'a mut W<REG>

The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting down.

source

pub fn center_aligned_counting_up(self) -> &'a mut W<REG>

The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up.

source

pub fn center_aligned_counting_up_down(self) -> &'a mut W<REG>

The counter counts up and down alternatively. Output compare interrupt flags are set both when the counter is counting up or down.