Struct wiringpi::pin::PwmPin [] [src]

pub struct PwmPin<Pin>(_, _);

To understand more about the PWM system, you’ll need to read the Broadcom ARM peripherals manual.

Methods

impl<P: Pin + Pwm> PwmPin<P>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

Writes the value to the PWM register for the given pin.

The value must be between 0 and 1024.

[src]

The PWM generator can run in 2 modes – "balanced" and "mark:space".

The mark:space mode is traditional, however the default mode in the Pi is "balanced". You can switch modes by supplying the parameter: Balanced or MarkSpace.

[src]

This sets the range register in the PWM generator. The default is 1024.

[src]

This sets the divisor for the PWM clock.

Trait Implementations

Auto Trait Implementations

impl<Pin> Send for PwmPin<Pin> where
    Pin: Send

impl<Pin> Sync for PwmPin<Pin> where
    Pin: Sync