Trait stm32f4xx_hal::timer::pwm::PwmExt
source · pub trait PwmExt{
// Required methods
fn pwm<PINS, const FREQ: u32>(
self,
pins: PINS,
time: TimerDurationU32<FREQ>,
clocks: &Clocks
) -> Pwm<Self, PINS, FREQ>
where PINS: Pins<Self>;
fn pwm_hz<PINS>(
self,
pins: PINS,
freq: Hertz,
clocks: &Clocks
) -> PwmHz<Self, PINS>
where PINS: Pins<Self>;
// Provided method
fn pwm_us<PINS>(
self,
pins: PINS,
time: TimerDurationU32<1_000_000>,
clocks: &Clocks
) -> Pwm<Self, PINS, 1_000_000>
where PINS: Pins<Self> { ... }
}
Required Methods§
fn pwm<PINS, const FREQ: u32>(
self,
pins: PINS,
time: TimerDurationU32<FREQ>,
clocks: &Clocks
) -> Pwm<Self, PINS, FREQ>where
PINS: Pins<Self>,
fn pwm_hz<PINS>(
self,
pins: PINS,
freq: Hertz,
clocks: &Clocks
) -> PwmHz<Self, PINS>where
PINS: Pins<Self>,
Provided Methods§
fn pwm_us<PINS>(
self,
pins: PINS,
time: TimerDurationU32<1_000_000>,
clocks: &Clocks
) -> Pwm<Self, PINS, 1_000_000>where
PINS: Pins<Self>,
Object Safety§
This trait is not object safe.