Struct tcc_config

Configuration struct for a TCC instance. This structure should be initialized by the tcc_get_config_defaults function before being modified by the user application.

Table 1. Members
Type Name Description
union tcc_config.@1 @1

TCC match/capture configurations.

struct tcc_counter_config counter

Structure for configuring TCC base timer/counter.

bool double_buffering_enabled

Set to true to enable double buffering write. When enabled any write through tcc_set_top_value(), tcc_set_compare_value() and tcc_set_pattern() will direct to the buffer register as buffered value, and the buffered value will be committed to effective register on UPDATE condition, if update is not locked.

Note: The init values in tcc_config for tcc_init are always filled to effective registers, no matter double buffering enabled or not.
struct tcc_pins_config pins

Structure for configuring TCC output pins.

bool run_in_standby

When true the module is enabled during standby.

struct tcc_wave_extension_config wave_ext

Structure for configuring TCC waveform extension.