Microchip® Advanced Software Framework

tc_waveform_opt_t Struct Reference

Parameters when initializing a timer/counter in waveform mode.

#include <tc.h>

Data Fields

unsigned int acpa: 2
 RA compare effect on TIOA:
. More...
 
unsigned int acpc: 2
 RC compare effect on TIOA:
. More...
 
unsigned int aeevt: 2
 External event effect on TIOA:
. More...
 
unsigned int aswtrg: 2
 Software trigger effect on TIOA:
. More...
 
unsigned int bcpb: 2
 RB compare effect on TIOB:
. More...
 
unsigned int bcpc: 2
 RC compare effect on TIOB:
. More...
 
unsigned int beevt: 2
 External event effect on TIOB:
. More...
 
unsigned int bswtrg: 2
 Software trigger effect on TIOB:
. More...
 
unsigned int burst: 2
 Burst signal selection:
. More...
 
unsigned int channel
 Channel to initialize. More...
 
unsigned int clki: 1
 Clock invert:
. More...
 
unsigned int cpcdis: 1
 Counter clock disable with RC compare:
. More...
 
unsigned int cpcstop: 1
 Counter clock stopped with RC compare:
. More...
 
unsigned int eevt: 2
 External event selection:
. More...
 
unsigned int eevtedg: 2
 External event edge selection:
. More...
 
unsigned int enetrg: 1
 External event trigger enable:
. More...
 
unsigned int: 1
 
unsigned int tcclks: 3
 Clock selection:
. More...
 
unsigned int wavsel: 2
 Waveform selection:
. More...
 

unsigned int tc_waveform_opt_t::acpa
unsigned int tc_waveform_opt_t::acpc
unsigned int tc_waveform_opt_t::aeevt
unsigned int tc_waveform_opt_t::aswtrg
unsigned int tc_waveform_opt_t::bcpb
unsigned int tc_waveform_opt_t::bcpc
unsigned int tc_waveform_opt_t::beevt
unsigned int tc_waveform_opt_t::bswtrg
unsigned int tc_waveform_opt_t::burst
unsigned int tc_waveform_opt_t::channel

Channel to initialize.

Referenced by tc_init_waveform().

unsigned int tc_waveform_opt_t::clki
unsigned int tc_waveform_opt_t::cpcdis

Counter clock disable with RC compare:
.

  • false;
  • true.

Referenced by tc_init_waveform().

unsigned int tc_waveform_opt_t::cpcstop

Counter clock stopped with RC compare:
.

  • false;
  • true.

Referenced by tc_init_waveform().

unsigned int tc_waveform_opt_t::eevt

External event selection:
.

Referenced by tc_init_waveform().

unsigned int tc_waveform_opt_t::eevtedg

External event edge selection:
.

Referenced by tc_init_waveform().

unsigned int tc_waveform_opt_t::enetrg

External event trigger enable:
.

  • false;
  • true.

Referenced by tc_init_waveform().

unsigned tc_waveform_opt_t::int