pub trait PwmPinOps<TC> {
type Duty;
// Required methods
fn enable(&mut self);
fn disable(&mut self);
fn get_duty(&self) -> Self::Duty;
fn get_max_duty(&self) -> Self::Duty;
fn set_duty(&mut self, value: u8);
}Available on crate features
board-selected and mcu-atmega only.Expand description
Implement traits and types for PWM timers
Required Associated Types§
Required Methods§
fn enable(&mut self)
fn disable(&mut self)
fn get_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
fn set_duty(&mut self, value: u8)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".