Struct esp32c6_hal::mcpwm::operator::PwmPin
source · pub struct PwmPin<'d, Pin, PWM, const OP: u8, const IS_A: bool> { /* private fields */ }
Expand description
A pin driven by an MCPWM operator
Implementations§
source§impl<'d, Pin, PWM, const OP: u8, const IS_A: bool> PwmPin<'d, Pin, PWM, OP, IS_A>where
Pin: OutputPin,
PWM: PwmPeripheral,
impl<'d, Pin, PWM, const OP: u8, const IS_A: bool> PwmPin<'d, Pin, PWM, OP, IS_A>where Pin: OutputPin, PWM: PwmPeripheral,
sourcepub fn set_actions(&mut self, value: PwmActions<IS_A>)
pub fn set_actions(&mut self, value: PwmActions<IS_A>)
Configure what actions should be taken on timing events
sourcepub fn set_update_method(&mut self, update_method: PwmUpdateMethod)
pub fn set_update_method(&mut self, update_method: PwmUpdateMethod)
Set how a new timestamp syncs with the timer
sourcepub fn set_timestamp(&mut self, value: u16)
pub fn set_timestamp(&mut self, value: u16)
Write a new timestamp.
The written value will take effect according to the set
PwmUpdateMethod
.