Function tc_reset()

Resets the TC module.

enum status_code tc_reset(
		const struct tc_module *const module_inst)

Resets the TC module, restoring all hardware module registers to their default values and disabling the module. The TC module will not be accessible while the reset is being performed.

Note: When resetting a 32-bit counter only the master TC module's instance structure should be passed to the function.
Table 1. Parameters
Data direction Parameter name Description

[in]

module_inst

Pointer to the software module instance struct

Returns

Status of the procedure.

Table 2. Return Values
Return value Description

STATUS_OK

The module was reset successfully

STATUS_ERR_UNSUPPORTED_DEV

A 32-bit slave TC module was passed to the function. Only use reset on master TC