[][src]Trait deoxy::Pwm

pub trait Pwm {
    fn set_pwm(
        &mut self,
        period: Duration,
        pulse_width: Duration
    ) -> Result<(), Error>; }

Trait representing an output device capable of (software) PWM.

Required methods

fn set_pwm(
    &mut self,
    period: Duration,
    pulse_width: Duration
) -> Result<(), Error>

Sets the pulse width and period for the device.

Loading content...

Implementations on Foreign Types

impl Pwm for OutputPin[src]

Loading content...

Implementors

impl Pwm for Pin[src]

Loading content...