Trait PwmExt

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

Required Methods§

Source

fn pwm<const FREQ: u32>( self, time: TimerDurationU32<FREQ>, clocks: &Clocks, ) -> (PwmManager<Self, FREQ>, Self::Channels)

Source

fn pwm_hz( self, freq: Hertz, clocks: &Clocks, ) -> (PwmHzManager<Self>, Self::Channels)

Provided Methods§

Source

fn pwm_us( self, time: TimerDurationU32<1_000_000>, clocks: &Clocks, ) -> (PwmManager<Self, 1_000_000>, Self::Channels)

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