pub trait PwmExt{
// Required methods
fn pwm<const FREQ: u32>(
self,
time: TimerDurationU32<FREQ>,
clocks: &Clocks,
) -> (PwmManager<Self, FREQ>, Self::Channels);
fn pwm_hz(
self,
freq: Hertz,
clocks: &Clocks,
) -> (PwmHzManager<Self>, Self::Channels);
// Provided method
fn pwm_us(
self,
time: TimerDurationU32<1_000_000>,
clocks: &Clocks,
) -> (PwmManager<Self, 1_000_000>, Self::Channels) { ... }
}
Required Methods§
fn pwm<const FREQ: u32>( self, time: TimerDurationU32<FREQ>, clocks: &Clocks, ) -> (PwmManager<Self, FREQ>, Self::Channels)
fn pwm_hz( self, freq: Hertz, clocks: &Clocks, ) -> (PwmHzManager<Self>, Self::Channels)
Provided Methods§
fn pwm_us( self, time: TimerDurationU32<1_000_000>, clocks: &Clocks, ) -> (PwmManager<Self, 1_000_000>, Self::Channels)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.