Type Alias gd32f1::gd32f130::timer14::smcfg::SmcW

source ·
pub type SmcW<'a, REG> = FieldWriter<'a, REG, 3, Smc>;
Expand description

Field SMC writer - Slave mode control

Aliased Type§

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

Implementations§

source§

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

source

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

Slave mode disabled - if CEN=1 then the prescaler is clocked directly by the internal clock.

source

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

Restart Mode - Rising edge of the selected trigger input (TRGI) reinitializes the counter and generates an update of the registers.

source

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

Pause Mode - The counter clock is enabled when the trigger input (TRGI) is high. The counter stops (but is not reset) as soon as the trigger becomes low. Both start and stop of the counter are controlled.

source

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

Event Mode - The counter starts at a rising edge of the trigger TRGI (but it is not reset). Only the start of the counter is controlled.

source

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

External Clock Mode 0 - Rising edges of the selected trigger (TRGI) clock the counter.