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 1. Parameters
Data direction Parameter name Description

[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 2. Return Values
Return value Description

STATUS_OK

The timer count was updated successfully

STATUS_ERR_INVALID_ARG

An invalid timer counter size was specified