PwmExt

Trait PwmExt 

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

Source

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>,

Source

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 Methods§

Source

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>,

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.

Implementors§

Source§

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