Expand description
Pulse Width Modulation (PWM) driver.
Structs§
- Config
- Configuration for the PWM as a whole.
- Sequence
- A composition of a sequence buffer and its configuration.
- Sequence
Config - Configuration per sequence
- Sequence
Pwm - 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.
- Sequencer
- 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.
- Simple
Pwm - SimplePwm is the traditional pwm interface you’re probably used to, allowing to simply set a duty cycle across up to four channels.
- Single
Sequencer - A single sequence that can be started and stopped. Takes one sequence along with its configuration.
Enums§
- Counter
Mode - Selects up mode or up-and-down mode for the counter
- Error
- PWM error
- Prescaler
- PWM Base clock is system clock (16MHz) divided by prescaler
- Sequence
Load - How the sequence values are distributed across the channels
- Sequence
Mode - How many loops to run two sequences
- Single
Sequence Mode - How many times to run a single sequence
- Start
Sequence - Which sequence to start a loop with
Constants§
- PWM_
CLK_ HZ - The used pwm clock frequency
Traits§
- Instance
- PWM peripheral instance.