Enum atmega32u4::timer0::tccr_a::WGM0R [−][src]
pub enum WGM0R { NORMAL_TOP, PWM_PHASE, CTC, PWM_FAST, }
Possible values of the field WGM0
Variants
NORMAL_TOP
Normal, Top: 0xff
, Update: Immediate, Flag: MAX
PWM_PHASE
Phase Correct PWM, Top: 0xff
, Update: TOP, Flag: BOTTOM
CTC
CTC, Top: OCRA, Update: Immediate, Flag: MAX
PWM_FAST
Fast PWM, Top: 0xff
, Update: TOP, Flag: MAX
Methods
impl WGM0R
[src]
impl WGM0R
pub fn bits(&self) -> u8
[src]
pub fn bits(&self) -> u8
Value of the field as raw bits
pub fn is_normal_top(&self) -> bool
[src]
pub fn is_normal_top(&self) -> bool
Checks if the value of the field is NORMAL_TOP
pub fn is_pwm_phase(&self) -> bool
[src]
pub fn is_pwm_phase(&self) -> bool
Checks if the value of the field is PWM_PHASE
pub fn is_ctc(&self) -> bool
[src]
pub fn is_ctc(&self) -> bool
Checks if the value of the field is CTC
pub fn is_pwm_fast(&self) -> bool
[src]
pub fn is_pwm_fast(&self) -> bool
Checks if the value of the field is PWM_FAST
Trait Implementations
impl Clone for WGM0R
[src]
impl Clone for WGM0R
fn clone(&self) -> WGM0R
[src]
fn clone(&self) -> WGM0R
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for WGM0R
[src]
impl Copy for WGM0R
impl Debug for WGM0R
[src]
impl Debug for WGM0R
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for WGM0R
[src]
impl PartialEq for WGM0R