Function tc_get_status()

Retrieves the current module status.

uint32_t tc_get_status(
		struct tc_module *const module_inst)

Retrieves the status of the module, giving overall state information.

Table 1. Parameters
Data direction Parameter name Description

[in]

module_inst

Pointer to the TC software instance struct

Returns

Bitmask of TC_STATUS_* flags.

Table 2. Return Values
Return value Description

TC_STATUS_CHANNEL_0_MATCH

Timer channel 0 compare/capture match

TC_STATUS_CHANNEL_1_MATCH

Timer channel 1 compare/capture match

TC_STATUS_SYNC_READY

Timer read synchronization has completed

TC_STATUS_CAPTURE_OVERFLOW

Timer capture data has overflowed

TC_STATUS_COUNT_OVERFLOW

Timer count value has overflowed

TC_STATUS_CHN0_BUFFER_VALID

Timer count channel 0 compare/capture buffer valid

TC_STATUS_CHN1_BUFFER_VALID

Timer count channel 1 compare/capture buffer valid

TC_STATUS_PERIOD_BUFFER_VALID

Timer count period buffer valid