Struct esp32c6_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> = Self::new(PwmActions::UP_ACTIVE_HIGH, PwmUpdateMethod::SYNC_ON_ZERO)
pub const UP_ACTIVE_HIGH: PwmPinConfig<IS_A> = Self::new(PwmActions::UP_ACTIVE_HIGH, PwmUpdateMethod::SYNC_ON_ZERO)
A configuration using PwmActions::UP_ACTIVE_HIGH
and
PwmUpdateMethod::SYNC_ON_ZERO
sourcepub const UP_DOWN_ACTIVE_HIGH: PwmPinConfig<IS_A> = Self::new(PwmActions::UP_DOWN_ACTIVE_HIGH, PwmUpdateMethod::SYNC_ON_ZERO)
pub const UP_DOWN_ACTIVE_HIGH: PwmPinConfig<IS_A> = Self::new(PwmActions::UP_DOWN_ACTIVE_HIGH, PwmUpdateMethod::SYNC_ON_ZERO)
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