pub enum OcConfig {
Off,
RisingSlope(u32),
FallingSlope(u32),
Toggle(u32),
SinglePulse(u32, u32),
ContinuousPulses(u32, u32),
}Expand description
Output compare configuration (excluding PWM modes)
Variants§
Off
No operation
RisingSlope(u32)
Rising slope when the timer is equal to the specified value
FallingSlope(u32)
Falling slope when the timer is equal to the specified value
Toggle(u32)
Toggle when the timer is equal to the specified value
SinglePulse(u32, u32)
Single pulse with values defining the rising edge and falling edge, respectively
ContinuousPulses(u32, u32)
Continuous pulses with values defining the rising edges and falling edges, respectively
Auto Trait Implementations§
impl Freeze for OcConfig
impl RefUnwindSafe for OcConfig
impl Send for OcConfig
impl Sync for OcConfig
impl Unpin for OcConfig
impl UnsafeUnpin for OcConfig
impl UnwindSafe for OcConfig
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