Trait embedded_hal::PwmPin
source · [−]pub trait PwmPin {
type Duty;
fn disable(&mut self);
fn enable(&mut self);
fn get_duty(&self) -> Self::Duty;
fn get_max_duty(&self) -> Self::Duty;
fn set_duty(&mut self, duty: Self::Duty);
}
Expand description
A single PWM channel / pin
See Pwm
for details
Required Associated Types
Required Methods
sourcefn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Returns the maximum duty cycle value