Struct esp32_hal::mcpwm::operator::PwmUpdateMethod
source · 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 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