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