24.6.4.4.2 Function tc_set_count_value()
Sets TC module count value.
enum status_code tc_set_count_value( const struct tc_module *const module_inst, const uint32_t count)
Sets the current timer count value of a initialized TC module. The specified TC module may be started or stopped.
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 of the count update procedure.
Return value | Description |
---|---|
STATUS_OK |
The timer count was updated successfully |
STATUS_ERR_INVALID_ARG |
An invalid timer counter size was specified |