Struct esp32_hal::mcpwm::operator::PwmPinConfig
source · pub struct PwmPinConfig<const IS_A: bool> { /* private fields */ }
Expand description
Configuration describing how the operator generates a signal on a connected pin
Implementations§
source§impl<const IS_A: bool> PwmPinConfig<IS_A>
impl<const IS_A: bool> PwmPinConfig<IS_A>
sourcepub const UP_ACTIVE_HIGH: PwmPinConfig<IS_A> = _
pub const UP_ACTIVE_HIGH: PwmPinConfig<IS_A> = _
A configuration using PwmActions::UP_ACTIVE_HIGH
and
PwmUpdateMethod::SYNC_ON_ZERO
sourcepub const UP_DOWN_ACTIVE_HIGH: PwmPinConfig<IS_A> = _
pub const UP_DOWN_ACTIVE_HIGH: PwmPinConfig<IS_A> = _
A configuration using PwmActions::UP_DOWN_ACTIVE_HIGH
and
PwmUpdateMethod::SYNC_ON_ZERO
sourcepub const fn new(
actions: PwmActions<IS_A>,
update_method: PwmUpdateMethod
) -> PwmPinConfig<IS_A>
pub const fn new( actions: PwmActions<IS_A>, update_method: PwmUpdateMethod ) -> PwmPinConfig<IS_A>
Get a configuration using the given PwmActions
and PwmUpdateMethod
Auto Trait Implementations§
impl<const IS_A: bool> RefUnwindSafe for PwmPinConfig<IS_A>
impl<const IS_A: bool> Send for PwmPinConfig<IS_A>
impl<const IS_A: bool> Sync for PwmPinConfig<IS_A>
impl<const IS_A: bool> Unpin for PwmPinConfig<IS_A>
impl<const IS_A: bool> UnwindSafe for PwmPinConfig<IS_A>
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