pub struct Pwm<PWM> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
source§impl<PWM: PwmX> Pwm for Pwm<PWM>
impl<PWM: PwmX> Pwm for Pwm<PWM>
§type Channel = Channel<PWM>
type Channel = Channel<PWM>
Enumeration of channels that can be used with this
Pwm
interface Read more§type Time = <PWM as PwmX>::CmpWidth
type Time = <PWM as PwmX>::CmpWidth
A time unit that can be converted into a human time unit (e.g. seconds)
source§fn get_period(&self) -> Self::Time
fn get_period(&self) -> Self::Time
Returns the current PWM period
source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Returns the maximum duty cycle value
source§fn set_period<P>(&mut self, period: P)where
P: Into<Self::Time>,
fn set_period<P>(&mut self, period: P)where P: Into<Self::Time>,
Sets a new PWM period