pub trait PwmExt where
Self: Sized + Instance + WithPwm, {
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>;
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>,
{ ... }
}