pub trait PwmExt{
// Required methods
fn pwm<P, PINS, const FREQ: u32>(
self,
pins: PINS,
time: TimerDurationU32<FREQ>,
clocks: &Clocks,
) -> Pwm<Self, P, PINS, FREQ>
where PINS: Pins<Self, P>;
fn pwm_hz<P, PINS>(
self,
pins: PINS,
freq: Hertz,
clocks: &Clocks,
) -> PwmHz<Self, P, PINS>
where PINS: Pins<Self, P>;
// Provided method
fn pwm_us<P, PINS>(
self,
pins: PINS,
time: TimerDurationU32<1_000_000>,
clocks: &Clocks,
) -> Pwm<Self, P, PINS, 1_000_000>
where PINS: Pins<Self, P> { ... }
}Required Methods§
fn pwm<P, PINS, const FREQ: u32>(
self,
pins: PINS,
time: TimerDurationU32<FREQ>,
clocks: &Clocks,
) -> Pwm<Self, P, PINS, FREQ>where
PINS: Pins<Self, P>,
fn pwm_hz<P, PINS>(
self,
pins: PINS,
freq: Hertz,
clocks: &Clocks,
) -> PwmHz<Self, P, PINS>where
PINS: Pins<Self, P>,
Provided Methods§
fn pwm_us<P, PINS>(
self,
pins: PINS,
time: TimerDurationU32<1_000_000>,
clocks: &Clocks,
) -> Pwm<Self, P, PINS, 1_000_000>where
PINS: Pins<Self, P>,
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.