25.6.4.5.2 Function tcc_set_count_value()

Sets count value for the given TCC module.

enum status_code tcc_set_count_value( const struct tcc_module *const module_inst, const uint32_t count)

Sets the timer count value of an initialized TCC module. The specified TCC module can remain running or stopped.

Table 25-37. Parameters
Data directionParameter nameDescription

[in]

module_inst

Pointer to the software module instance struct

[in]

count

New timer count value to set

Returns

Status which indicates whether the new value is set.

Table 25-38. Return Values
Return valueDescription

STATUS_OK

The timer count was updated successfully

STATUS_ERR_INVALID_ARG

An invalid timer counter size was specified