Type Alias avr_device::atmega2560::tc2::tccr2a::WGM2_R

source ·
pub type WGM2_R = FieldReader<u8, WGM2_A>;
Expand description

Field WGM2 reader - Waveform Genration Mode

Aliased Type§

struct WGM2_R { /* private fields */ }

Implementations§

source§

impl WGM2_R

source

pub fn variant(&self) -> WGM2_A

Get enumerated values variant

source

pub fn is_normal_top(&self) -> bool

Checks if the value of the field is NORMAL_TOP

source

pub fn is_pwm_phase(&self) -> bool

Checks if the value of the field is PWM_PHASE

source

pub fn is_ctc(&self) -> bool

Checks if the value of the field is CTC

source

pub fn is_pwm_fast(&self) -> bool

Checks if the value of the field is PWM_FAST