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]

Value to be used for compare match on each channel.

Referenced by configure_tcc(), run_callback_test(), run_capture_and_compare_test(), run_faultn_test(), run_faultx_test(), and tcc_init().

enum tcc_wave_generation tcc_match_wave_config::wave_generation
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(), and configure_tcc().

enum tcc_ramp tcc_match_wave_config::wave_ramp

Specifies Ramp mode for waveform generation.

Referenced by _tcc_build_waves(), and tcc_get_config_defaults().