pub trait PwmOps<const C: u8>: ChannelEnable<C> {
// Required methods
fn apply_pwm_mode(&mut self);
fn set_chxcv(&mut self, cv: u16);
}Expand description
Register operations on compare channel C of a timer.
Required Methods§
Sourcefn apply_pwm_mode(&mut self)
fn apply_pwm_mode(&mut self)
Configures the channel as a PWM output and readies it for a duty value.
Covers direction, compare mode and polarity at once: a channel in PWM mode while still pointed at its input drives nothing.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".