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
.
Auto Trait Implementations§
impl<'d, Pin, PWM, const OP: u8, const IS_A: bool> RefUnwindSafe for PwmPin<'d, Pin, PWM, OP, IS_A>where PWM: RefUnwindSafe, Pin: RefUnwindSafe,
impl<'d, Pin, PWM, const OP: u8, const IS_A: bool> Send for PwmPin<'d, Pin, PWM, OP, IS_A>where PWM: Send, Pin: Send,
impl<'d, Pin, PWM, const OP: u8, const IS_A: bool> Sync for PwmPin<'d, Pin, PWM, OP, IS_A>where PWM: Sync, Pin: Sync,
impl<'d, Pin, PWM, const OP: u8, const IS_A: bool> Unpin for PwmPin<'d, Pin, PWM, OP, IS_A>where PWM: Unpin, Pin: Unpin,
impl<'d, Pin, PWM, const OP: u8, const IS_A: bool> !UnwindSafe for PwmPin<'d, Pin, PWM, OP, 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