pub enum LoadMode {
ReloadCycle {
full: bool,
half: bool,
},
Immediate,
}
Expand description
PWM (re)load mode.
Use the associated methods to simply define ReloadCycle
values.
Variants§
ReloadCycle
Reload on the next cycle after LDOK
is set.
One of these should be set. You may set both to increase the reload opportunity frequency.
Fields
Immediate
Reload immediately after LDOK
is set.
Implementations§
source§impl LoadMode
impl LoadMode
sourcepub const fn reload_full() -> Self
pub const fn reload_full() -> Self
Full reload cycle.
sourcepub const fn reload_half() -> Self
pub const fn reload_half() -> Self
Half reload cycle.
sourcepub const fn reload_both() -> Self
pub const fn reload_both() -> Self
Full and half reload cycle.
Trait Implementations§
source§impl PartialEq for LoadMode
impl PartialEq for LoadMode
impl Copy for LoadMode
impl Eq for LoadMode
impl StructuralPartialEq for LoadMode
Auto Trait Implementations§
impl Freeze for LoadMode
impl RefUnwindSafe for LoadMode
impl Send for LoadMode
impl Sync for LoadMode
impl Unpin for LoadMode
impl UnwindSafe for LoadMode
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