Trait atmega_hal::prelude::_embedded_hal_PwmPin
source · pub trait _embedded_hal_PwmPin {
type Duty;
// Required methods
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