Enum avr_device::atmega328p::tc2::tccr2a::WGM2_A
source · #[repr(u8)]pub enum WGM2_A {
NORMAL_TOP = 0,
PWM_PHASE = 1,
CTC = 2,
PWM_FAST = 3,
}
Expand description
Waveform Genration Mode
Value on reset: 0
Variants§
NORMAL_TOP = 0
0: Normal, Top: 0xff
, Update: Immediate, Flag: MAX
PWM_PHASE = 1
1: Phase Correct PWM, Top: 0xff
, Update: TOP, Flag: BOTTOM
CTC = 2
2: CTC, Top: OCRA, Update: Immediate, Flag: MAX
PWM_FAST = 3
3: Fast PWM, Top: 0xff
, Update: TOP, Flag: MAX
Trait Implementations§
source§impl PartialEq for WGM2_A
impl PartialEq for WGM2_A
impl Copy for WGM2_A
impl Eq for WGM2_A
impl StructuralPartialEq for WGM2_A
Auto Trait Implementations§
impl RefUnwindSafe for WGM2_A
impl Send for WGM2_A
impl Sync for WGM2_A
impl Unpin for WGM2_A
impl UnwindSafe for WGM2_A
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more