25.6.5.8 Enum tcc_event_action

Event action to perform when the module is triggered by events.

Table 25-77. Members
Enum valueDescription

TCC_EVENT_ACTION_OFF

No event action.

TCC_EVENT_ACTION_STOP

Stop counting, the counter will maintain its current value, waveforms are set to a defined Non-Recoverable State output (tcc_non_recoverable_state_output).

TCC_EVENT_ACTION_RETRIGGER

Re-trigger counter on event, may generate an event if the re-trigger event output is enabled.
Note: When re-trigger event action is enabled, enabling the counter will not start until the next incoming event appears.

TCC_EVENT_ACTION_START

Start counter when previously stopped. Start counting on the event rising edge. Further events will not restart the counter; the counter keeps on counting using prescaled GCLK_TCCx, until it reaches TOP or Zero depending on the direction.

TCC_EVENT_ACTION_COUNT_EVENT

Count events; i.e. Increment or decrement depending on count direction.

TCC_EVENT_ACTION_DIR_CONTROL

The event source must be an asynchronous event, input value will overrides the direction settings (input low: counting up, input high counting down).

TCC_EVENT_ACTION_INCREMENT

Increment the counter on event, irrespective of count direction.

TCC_EVENT_ACTION_DECREMENT

Decrement the counter on event, irrespective of count direction.

TCC_EVENT_ACTION_COUNT_DURING_ACTIVE

Count during active state of asynchronous event. In this case, depending on the count direction, the count will be incremented or decremented on each prescaled GCLK_TCCx, as long as the input event remains active.

TCC_EVENT_ACTION_PERIOD_PULSE_WIDTH_CAPTURE

Store period in capture register 0, pulse width in capture register 1.

TCC_EVENT_ACTION_PULSE_WIDTH_PERIOD_CAPTURE

Store pulse width in capture register 0, period in capture register 1.

TCC_EVENT_ACTION_NON_RECOVERABLE_FAULT

Generate Non-Recoverable Fault on event.