25.6.4.12.2 Function tcc_get_status()
Retrieves the current module status.
uint32_t tcc_get_status( struct tcc_module *const module_inst)
Retrieves the status of the module, giving overall state information.
Data direction | Parameter name | Description |
---|---|---|
[in] |
module_inst |
Pointer to the TCC software instance struct |
Returns
Bitmask of TCC_STATUS_* flags.
Return value | Description |
---|---|
TCC_STATUS_CHANNEL_MATCH_CAPTURE(n) |
Channel n match/capture has occured |
TCC_STATUS_CHANNEL_OUTPUT(n) |
Channel n match/capture output state |
TCC_STATUS_NON_RECOVERABLE_FAULT_OCCUR(x) |
Non-recoverable fault x has occured |
TCC_STATUS_RECOVERABLE_FAULT_OCCUR(n) |
Recoverable fault n has occured |
TCC_STATUS_NON_RECOVERABLE_FAULT_PRESENT(x) |
Non-recoverable fault x input present |
TCC_STATUS_RECOVERABLE_FAULT_PRESENT(n) |
Recoverable fault n input present |
TCC_STATUS_SYNC_READY |
None of register is syncing |
TCC_STATUS_CAPTURE_OVERFLOW |
Timer capture data has overflowed |
TCC_STATUS_COUNTER_EVENT |
Timer counter event has occurred |
TCC_STATUS_COUNT_OVERFLOW |
Timer count value has overflowed |
TCC_STATUS_COUNTER_RETRIGGERED |
Timer counter has been retriggered |
TCC_STATUS_STOP |
Timer counter has been stopped |
TCC_STATUS_RAMP_CYCLE_INDEX |
Wave ramp index for cycle |