25.6.2.4 Struct tcc_counter_config

Structure for configuring a TCC as a counter.

Table 25-13. Members
TypeNameDescription
enum tcc_clock_prescalerclock_prescaler

Specifies the prescaler value for GCLK_TCC.

enum gclk_generatorclock_source

GCLK generator used to clock the peripheral.

uint32_tcount

Value to initialize the count register.

enum tcc_count_directiondirection

Specifies the direction for the TCC to count.

enum tcc_count_overflow_dma_trigger_modedma_trigger_mode

Counter overflow trigger a DMA request mode.

booloneshot

When true, counter will be stopped on the next hardware or software re-trigger event or overflow/underflow.

uint32_tperiod

Period/top and period/top buffer values for counter.

enum tcc_reload_actionreload_action

Specifies the reload or reset time of the counter and prescaler resynchronization on a re-trigger event for the TCC.