Trait PwmExt

Source
pub trait PwmExt
where Self: Sized + Instance + WithPwm,
{ // Required methods fn pwm<P, PINS, const FREQ: u32>( self, pins: PINS, time: TimerDurationU32<FREQ>, clocks: &Clocks, ) -> Pwm<Self, P, PINS, FREQ> where PINS: Pins<Self, P>; fn pwm_hz<P, PINS>( self, pins: PINS, freq: Hertz, clocks: &Clocks, ) -> PwmHz<Self, P, PINS> where PINS: Pins<Self, P>; // Provided method fn pwm_us<P, PINS>( self, pins: PINS, time: TimerDurationU32<1_000_000>, clocks: &Clocks, ) -> Pwm<Self, P, PINS, 1_000_000> where PINS: Pins<Self, P> { ... } }

Required Methods§

Source

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

Source

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

Provided Methods§

Source

fn pwm_us<P, PINS>( self, pins: PINS, time: TimerDurationU32<1_000_000>, clocks: &Clocks, ) -> Pwm<Self, P, PINS, 1_000_000>
where PINS: Pins<Self, 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,