pub struct PwmChannel1<TIM> { /* private fields */ }Implementations§
Source§impl<TIM> PwmChannel1<TIM>
impl<TIM> PwmChannel1<TIM>
Trait Implementations§
Source§impl<TIM: TimerWithPwm1Ch> ErrorType for PwmChannel1<TIM>
impl<TIM: TimerWithPwm1Ch> ErrorType for PwmChannel1<TIM>
Source§type Error = Infallible
type Error = Infallible
Error type
Source§impl<TIM: TimerWithPwm1Ch> PwmChannel for PwmChannel1<TIM>
impl<TIM: TimerWithPwm1Ch> PwmChannel for PwmChannel1<TIM>
fn config(&mut self, mode: PwmMode, polarity: PwmPolarity)
fn set_enable(&mut self, en: bool)
Source§impl<TIM: TimerWithPwm1Ch> SetDutyCycle for PwmChannel1<TIM>
impl<TIM: TimerWithPwm1Ch> SetDutyCycle for PwmChannel1<TIM>
Source§fn max_duty_cycle(&self) -> u16
fn max_duty_cycle(&self) -> u16
Get the maximum duty cycle value. Read more
Source§fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>
Set the duty cycle to
duty / max_duty. Read moreSource§fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>
Set the duty cycle to 0%, or always inactive.
Source§fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>
Set the duty cycle to 100%, or always active.