Microchip® Advanced Software Framework

tcc_match_wave_config Struct Reference

Configuration struct for the TCC module match/wave generation.

The structure, which helps to configure a TCC channel for compare operation and wave generation.

#include <tcc.h>

Data Fields

enum tcc_channel_function channel_function [TCC_NUM_CHANNELS]
 Channel functions selection (capture/match) More...
 
uint32_t match [TCC_NUM_CHANNELS]
 Value to be used for compare match on each channel. More...
 
enum tcc_wave_generation wave_generation
 Specifies which waveform generation mode to use. More...
 
enum tcc_wave_polarity wave_polarity [TCC_NUM_CHANNELS]
 Specifies polarity for match output waveform generation. More...
 
enum tcc_ramp wave_ramp
 Specifies Ramp mode for waveform generation. More...
 

enum tcc_channel_function tcc_match_wave_config::channel_function[TCC_NUM_CHANNELS]

Channel functions selection (capture/match)

Referenced by configure_tcc().

uint32_t tcc_match_wave_config::match[TCC_NUM_CHANNELS]
enum tcc_wave_polarity tcc_match_wave_config::wave_polarity[TCC_NUM_CHANNELS]

Specifies polarity for match output waveform generation.

Referenced by _tcc_build_waves(), configure_tcc(), configure_tcc_ramp2a_mode(), and configure_tcc_ramp2c_mode().

enum tcc_ramp tcc_match_wave_config::wave_ramp

Specifies Ramp mode for waveform generation.

Referenced by _tcc_build_waves(), configure_tcc_ramp2a_mode(), configure_tcc_ramp2c_mode(), and tcc_get_config_defaults().