Type Alias avr_device::attiny85::tc0::tccr0a::WGM0_W

source ·
pub type WGM0_W<'a, const O: u8> = FieldWriterSafe<'a, u8, TCCR0A_SPEC, u8, WGM0_A, 2, O>;
Expand description

Field WGM0 writer - Waveform Generation Mode

Aliased Type§

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

Implementations§

source§

impl<'a, const O: u8> WGM0_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: BOTTOM, Flag: TOP