24.6.4.3.1 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 24-18. Parameters
Data directionParameter nameDescription

[in]

module_inst

Pointer to the software module instance struct

Returns

Status of the procedure.

Table 24-19. Return Values
Return valueDescription

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