pub trait PwmExtwhere
Self: Sized + Instance + WithPwm,{
fn pwm<REMAP, P, PINS, const FREQ: u32>(
self,
pins: PINS,
mapr: &mut MAPR,
time: TimerDurationU32<FREQ>,
clocks: &Clocks
) -> Pwm<Self, REMAP, P, PINS, FREQ>
where
REMAP: Remap<Periph = Self>,
PINS: Pins<REMAP, P>;
fn pwm_hz<REMAP, P, PINS>(
self,
pins: PINS,
mapr: &mut MAPR,
freq: Hertz,
clocks: &Clocks
) -> PwmHz<Self, REMAP, P, PINS>
where
REMAP: Remap<Periph = Self>,
PINS: Pins<REMAP, P>;
fn pwm_us<REMAP, P, PINS>(
self,
pins: PINS,
mapr: &mut MAPR,
time: TimerDurationU32<1_000_000>,
clocks: &Clocks
) -> Pwm<Self, REMAP, P, PINS, 1_000_000>
where
REMAP: Remap<Periph = Self>,
PINS: Pins<REMAP, P>,
{ ... }
}