25.6.4.2.1 Function tcc_enable_events()

Enables the TCC module event input or output.

enum status_code tcc_enable_events( struct tcc_module *const module_inst, struct tcc_events *const events)

Enables one or more input or output events to or from the TCC module. See tcc_events for a list of events this module supports.

Note: Events cannot be altered while the module is enabled.
Table 25-28. Parameters
Data directionParameter nameDescription

[in]

module_inst

Pointer to the software module instance struct

[in]

events

Struct containing flags of events to enable or configure

Returns

Status of the events setup procedure.

Table 25-29. Return Values
Return valueDescription

STATUS_OK

The module was initialized successfully

STATUS_INVALID_ARG

An invalid configuration option or argument was supplied