Expand description
Pulse Width Modulation (PWM) driver.
Structs§
- Configuration for the PWM as a whole.
- A composition of a sequence buffer and its configuration.
- Configuration per sequence
- SequencePwm allows you to offload the updating of a sequence of duty cycles to up to four channels, as well as repeat that sequence n times.
- A composition of sequences that can be started and stopped. Takes at least one sequence along with its configuration. Optionally takes a second sequence and its configuration. In the case where no second sequence is provided then the first sequence is used.
- SimplePwm is the traditional pwm interface you’re probably used to, allowing to simply set a duty cycle across up to four channels.
- A single sequence that can be started and stopped. Takes one sequence along with its configuration.
Enums§
- Selects up mode or up-and-down mode for the counter
- PWM error
- PWM Base clock is system clock (16MHz) divided by prescaler
- How the sequence values are distributed across the channels
- How many loops to run two sequences
- How many times to run a single sequence
- Which sequence to start a loop with
Constants§
- The used pwm clock frequency
Traits§
- PWM peripheral instance.