embassy-rp

Crates

git

Versions

rp2040

Flavors

Module pwm

Source
Expand description

Pulse Width Modulation (PWM)

Structs§

Config
The configuration of a PWM slice. Note the period in clock cycles of a slice can be computed as: (top + 1) * (phase_correct ? 1 : 2) * divider
Pwm
PWM driver.
PwmBatch
Batch representation of PWM slices.
PwmOutput
Single channel of Pwm driver.

Enums§

InputMode
PWM input mode.
PwmError
PWM error.

Traits§

ChannelAPin
PWM Channel A.
ChannelBPin
PWM Channel B.
SetDutyCycle
Single PWM channel / pin.
Slice
PWM Slice.