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

source

fn pwm<PINS, const FREQ: u32>( self, pins: PINS, time: TimerDurationU32<FREQ>, clocks: &Clocks ) -> Pwm<Self, PINS, FREQ>
where PINS: Pins<Self>,

source

fn pwm_hz<PINS>( self, pins: PINS, freq: Hertz, clocks: &Clocks ) -> PwmHz<Self, PINS>
where PINS: Pins<Self>,

Provided Methods§

source

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.

Implementors§

source§

impl<TIM> PwmExt for TIM
where Self: Sized + Instance + WithPwm,