pub struct PwmUpdateMethod(/* private fields */);Expand description
Settings for when PwmPin::set_timestamp takes effect
Multiple syncing triggers can be set.
Implementations§
Source§impl PwmUpdateMethod
impl PwmUpdateMethod
Sourcepub const SYNC_IMMEDIATLY: Self
pub const SYNC_IMMEDIATLY: Self
New timestamp will be applied immediately
Sourcepub const SYNC_ON_ZERO: Self
pub const SYNC_ON_ZERO: Self
New timestamp will be applied when timer is equal to zero
Sourcepub const SYNC_ON_PERIOD: Self
pub const SYNC_ON_PERIOD: Self
New timestamp will be applied when timer is equal to period
Sourcepub const fn empty() -> Self
pub const fn empty() -> Self
PwmUpdateMethod with no sync triggers.
Corresponds to syncing immediately
Sourcepub const fn sync_on_timer_equals_zero(self) -> Self
pub const fn sync_on_timer_equals_zero(self) -> Self
Enable syncing new timestamp values when timer is equal to zero
Sourcepub const fn sync_on_timer_equals_period(self) -> Self
pub const fn sync_on_timer_equals_period(self) -> Self
Enable syncing new timestamp values when timer is equal to period
Auto Trait Implementations§
impl Freeze for PwmUpdateMethod
impl RefUnwindSafe for PwmUpdateMethod
impl Send for PwmUpdateMethod
impl Sync for PwmUpdateMethod
impl Unpin for PwmUpdateMethod
impl UnwindSafe for PwmUpdateMethod
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