Appiko
Data Fields
hal_pwm_start_t Struct Reference

Struct containing the configuration for starting the hal pwm module. More...

#include <hal_pwm.h>

Data Fields

uint32_t countertop
 Maximum count of the counter. This and oper_freq decide the frequency of the resulting PWM waveform.
 
uint32_t loop
 The number of times the pattern of both seq_config must be repeated.
 
uint32_t shorts_mask
 Select the shortcuts that need to be enabled. OR the values in hal_pwm_short_mask_t to enable them.
 
uint32_t interrupt_masks
 Select the interrupts that need to be enabled OR the values in hal_pwm_irq_mask_t to enable them.
 
hal_pwm_decoder_load_t decoder_load
 Select the way in which the data pointed in seq_config is loaded into to the various channels.
 
hal_pwm_dec_trigger_t decoder_trigger
 Select when the next data is loaded to the PWM.
 
hal_pwm_sequence_config_t seq_config [2]
 The two configurations for the sequences. If loop is zero only the first sequence is played once. Otherwise both the sequences are played repeatedly based on the loop value.
 
void(* irq_handler )(hal_pwm_irq_mask_t irq_source)
 the handler called based on the interrupt generated with the argument providing the source of the interrupt
 

Detailed Description

Definition at line 182 of file hal_pwm.h.


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