25.6.2.4 Struct tcc_counter_config
Structure for configuring a TCC as a counter.
Type | Name | Description |
---|---|---|
enum tcc_clock_prescaler | clock_prescaler |
Specifies the prescaler value for GCLK_TCC. |
enum gclk_generator | clock_source |
GCLK generator used to clock the peripheral. |
uint32_t | count |
Value to initialize the count register. |
enum tcc_count_direction | direction |
Specifies the direction for the TCC to count. |
enum tcc_count_overflow_dma_trigger_mode | dma_trigger_mode |
Counter overflow trigger a DMA request mode. |
bool | oneshot |
When true, counter will be stopped on the next hardware or software re-trigger event or overflow/underflow. |
uint32_t | period |
Period/top and period/top buffer values for counter. |
enum tcc_reload_action | reload_action |
Specifies the reload or reset time of the counter and prescaler resynchronization on a re-trigger event for the TCC. |