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 PB7

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

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

source§

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

source§

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

source§

impl PwmPinOps<Timer0Pwm> for PG5

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

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

source§

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

source§

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

source§

impl PwmPinOps<Timer1Pwm> for PB5

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

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

source§

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

source§

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

source§

impl PwmPinOps<Timer1Pwm> for PB6

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

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

source§

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

source§

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

source§

impl PwmPinOps<Timer1Pwm> for PB7

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

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

source§

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

source§

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

source§

impl PwmPinOps<Timer2Pwm> for PB4

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

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

source§

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

source§

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

source§

impl PwmPinOps<Timer2Pwm> for PH6

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

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

source§

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

source§

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

source§

impl PwmPinOps<Timer3Pwm> for PE3

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PE3 as PwmPinOps<Timer3Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PE3 as PwmPinOps<Timer3Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PE3 as PwmPinOps<Timer3Pwm>>::Duty)

source§

impl PwmPinOps<Timer3Pwm> for PE4

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PE4 as PwmPinOps<Timer3Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PE4 as PwmPinOps<Timer3Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PE4 as PwmPinOps<Timer3Pwm>>::Duty)

source§

impl PwmPinOps<Timer3Pwm> for PE5

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PE5 as PwmPinOps<Timer3Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PE5 as PwmPinOps<Timer3Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PE5 as PwmPinOps<Timer3Pwm>>::Duty)

source§

impl PwmPinOps<Timer4Pwm> for PH3

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PH3 as PwmPinOps<Timer4Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PH3 as PwmPinOps<Timer4Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PH3 as PwmPinOps<Timer4Pwm>>::Duty)

source§

impl PwmPinOps<Timer4Pwm> for PH4

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PH4 as PwmPinOps<Timer4Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PH4 as PwmPinOps<Timer4Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PH4 as PwmPinOps<Timer4Pwm>>::Duty)

source§

impl PwmPinOps<Timer4Pwm> for PH5

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PH5 as PwmPinOps<Timer4Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PH5 as PwmPinOps<Timer4Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PH5 as PwmPinOps<Timer4Pwm>>::Duty)

source§

impl PwmPinOps<Timer5Pwm> for PL3

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PL3 as PwmPinOps<Timer5Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PL3 as PwmPinOps<Timer5Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PL3 as PwmPinOps<Timer5Pwm>>::Duty)

source§

impl PwmPinOps<Timer5Pwm> for PL4

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PL4 as PwmPinOps<Timer5Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PL4 as PwmPinOps<Timer5Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PL4 as PwmPinOps<Timer5Pwm>>::Duty)

source§

impl PwmPinOps<Timer5Pwm> for PL5

§

type Duty = u8

source§

fn enable(&mut self)

source§

fn disable(&mut self)

source§

fn get_duty(&self) -> <PL5 as PwmPinOps<Timer5Pwm>>::Duty

source§

fn get_max_duty(&self) -> <PL5 as PwmPinOps<Timer5Pwm>>::Duty

source§

fn set_duty(&mut self, duty: <PL5 as PwmPinOps<Timer5Pwm>>::Duty)

Implementors§