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: PwmUpdateMethod
pub const SYNC_IMMEDIATLY: PwmUpdateMethod
New timestamp will be applied immediately
Sourcepub const SYNC_ON_ZERO: PwmUpdateMethod
pub const SYNC_ON_ZERO: PwmUpdateMethod
New timestamp will be applied when timer is equal to zero
Sourcepub const SYNC_ON_PERIOD: PwmUpdateMethod
pub const SYNC_ON_PERIOD: PwmUpdateMethod
New timestamp will be applied when timer is equal to period
Sourcepub const fn empty() -> PwmUpdateMethod
pub const fn empty() -> PwmUpdateMethod
PwmUpdateMethod
with no sync triggers.
Corresponds to syncing immediately
Sourcepub const fn sync_on_timer_equals_zero(self) -> PwmUpdateMethod
pub const fn sync_on_timer_equals_zero(self) -> PwmUpdateMethod
Enable syncing new timestamp values when timer is equal to zero
Sourcepub const fn sync_on_timer_equals_period(self) -> PwmUpdateMethod
pub const fn sync_on_timer_equals_period(self) -> PwmUpdateMethod
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