Struct sysfs_pwm::Pwm [] [src]

pub struct Pwm { /* fields omitted */ }

Methods

impl Pwm
[src]

Create a new Pwm wiht the provided chip/number

This function does not export the Pwm pin

Run a closure with the GPIO exported

Export the Pwm for use

Unexport the PWM

Enable/Disable the PWM Signal

Get the currently configured duty_cycle in nanoseconds

The active time of the PWM signal

Value is in nanoseconds and must be less than the period.

Get the currently configured period in nanoseconds

The period of the PWM signal in Nanoseconds

Trait Implementations

impl Debug for Pwm
[src]

Formats the value using the given formatter.