Type Alias avr_device::atmega2560::tc2::tccr2a::WGM2_W

source ·
pub type WGM2_W<'a, const O: u8> = FieldWriterSafe<'a, u8, TCCR2A_SPEC, u8, WGM2_A, 2, O>;
Expand description

Field WGM2 writer - Waveform Genration Mode

Aliased Type§

struct WGM2_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

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

source

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

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

source

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

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

source

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

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

source

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

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