25.6.4.13.9 Function tcc_enable_circular_buffer_compare()
Enable circular option for double buffered compare values.
enum status_code tcc_enable_circular_buffer_compare( struct tcc_module *const module_inst, enum tcc_match_capture_channel channel_index)
Enable circular option for the double buffered channel compare values. On each UPDATE condition, the contents of CCBx and CCx are switched, meaning that the contents of CCBx are transferred to CCx and the contents of CCx are transferred to CCBx.
Data direction | Parameter name | Description |
---|---|---|
[in] | module_inst |
Pointer to the TCC software instance struct |
[in] | channel_index |
Index of the compare channel to set up to |
Return value | Description |
---|---|
STATUS_OK |
The module was initialized successfully |
STATUS_INVALID_ARG |
An invalid channel index is supplied |