Appiko
Data Fields
hal_pwm_sequence_config_t Struct Reference

Configuration for a sequence of PWM values. Note that the buffer pointed to in this structure needs to have a lifetime longer than the duration of the PWM. More...

#include <hal_pwm.h>

Data Fields

uint16_t * seq_values
 Pointer to an array containing the PWM duty cycle values. This array present in the data RAM should preferably have a program lifetime (global or local static variable). More...
 
uint16_t len
 Number of 16-bit values in the buffer pointed by seq_values.
 
uint32_t repeats
 Number of times a particular value should be played. Only for HAL_PWM_STEP_INTERNAL mode.
 
uint32_t end_delay
 Additional number of cycles that the last PWM value is to be played after the end. Only for HAL_PWM_STEP_INTERNAL mode.
 

Detailed Description

Definition at line 120 of file hal_pwm.h.

Field Documentation

◆ seq_values

uint16_t* hal_pwm_sequence_config_t::seq_values
Note
Depending on the decoder load mode the 16 bit data for the various channels must be present one after the other
The MSB of the 16 bit value determines the polarity of the PWM output

Definition at line 128 of file hal_pwm.h.

Referenced by hal_pwm_start().


The documentation for this struct was generated from the following file: