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);
}
Expand description

Implement traits and types for PWM timers

Required Associated Types§

Required Methods§

source

fn enable(&mut self)

source

fn disable(&mut self)

source

fn get_duty(&self) -> Self::Duty

source

fn get_max_duty(&self) -> Self::Duty

source

fn set_duty(&mut self, value: u8)

Implementations on Foreign Types§

source§

impl PwmPinOps<Timer0Pwm> for PD5

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PD5 as PwmPinOps<Timer0Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PD5 as PwmPinOps<Timer0Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PD5 as PwmPinOps<Timer0Pwm>>::Duty)

source§

impl PwmPinOps<Timer0Pwm> for PD6

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PD6 as PwmPinOps<Timer0Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PD6 as PwmPinOps<Timer0Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PD6 as PwmPinOps<Timer0Pwm>>::Duty)

source§

impl PwmPinOps<Timer1Pwm> for PB1

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PB1 as PwmPinOps<Timer1Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PB1 as PwmPinOps<Timer1Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PB1 as PwmPinOps<Timer1Pwm>>::Duty)

source§

impl PwmPinOps<Timer1Pwm> for PB2

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PB2 as PwmPinOps<Timer1Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PB2 as PwmPinOps<Timer1Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PB2 as PwmPinOps<Timer1Pwm>>::Duty)

source§

impl PwmPinOps<Timer2Pwm> for PB3

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PB3 as PwmPinOps<Timer2Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PB3 as PwmPinOps<Timer2Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PB3 as PwmPinOps<Timer2Pwm>>::Duty)

source§

impl PwmPinOps<Timer2Pwm> for PD3

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PD3 as PwmPinOps<Timer2Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PD3 as PwmPinOps<Timer2Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PD3 as PwmPinOps<Timer2Pwm>>::Duty)

Implementors§