pub type REPMODE_W<'a, const O: u8> = FieldWriterSafe<'a, u32, CTRL_SPEC, u8, REPMODE_A, 2, O>;
Expand description

Field REPMODE writer - Repeat Mode

Implementations§

source§

impl<'a, const O: u8> REPMODE_W<'a, O>

source

pub fn free(self) -> &'a mut W

When started, the LETIMER counts down until it is stopped by software

source

pub fn oneshot(self) -> &'a mut W

The counter counts REP0 times. When REP0 reaches zero, the counter stops

source

pub fn buffered(self) -> &'a mut W

The counter counts REP0 times. If REP1 has been written, it is loaded into REP0 when REP0 reaches zero, otherwise the counter stops

source

pub fn double(self) -> &'a mut W

Both REP0 and REP1 are decremented when the LETIMER wraps around. The LETIMER counts until both REP0 and REP1 are zero