Type Alias WGM0_W

Source
pub type WGM0_W<'a, REG> = FieldWriter<'a, REG, 2, WGM0_A, Safe>;
Expand description

Field WGM0 writer - Waveform Generation Mode

Aliased Type§

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

Implementations§

Source§

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

Source

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

Normal, Top: 0xff, Update: Immediate, Flag: MAX

Source

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

Phase Correct PWM, Top: 0xff, Update: TOP, Flag: BOTTOM

Source

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

CTC, Top: OCRA, Update: Immediate, Flag: MAX

Source

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

Fast PWM, Top: 0xff, Update: BOTTOM, Flag: TOP