This functional group handles managing, setting, clearing, and disabling the interrupts of the general purpose timers and the global timer.
Disables the interrupt from the specified general purpose timer or global timer module.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
ALT_E_SUCCESS | The operation was successful. |
ALT_E_ERROR | The operation failed. |
ALT_E_BAD_ARG | Invalid input argument. |
Enables the interrupt of the specified general purpose timer or global timer module.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
ALT_E_SUCCESS | The operation was successful. |
ALT_E_ERROR | The operation failed. |
ALT_E_BAD_ARG | Invalid input argument. |
Return TRUE if the interrupt of the specified timer module is enabled and FALSE if the interrupt is disabled or masked.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
TRUE | The timer interrupt is currently enabled. |
FALSE | The timer interrupt is currently disabled. |
Clear the pending interrupt status of the specified timer module.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
ALT_E_SUCCESS | The operation was successful. |
ALT_E_ERROR | The operation failed. |
ALT_E_BAD_ARG | Invalid input argument. |
Read the state (pending or not) of the interrupt of the specified timer module without changing the interrupt state.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
ALT_E_TRUE | The timer interrupt is currently pending. |
ALT_E_FALSE | The timer interrupt is not currently pending. |
ALT_E_BAD_ARG | Invalid input argument. |
Read the state of the interrupt of the specified general purpose timer module and if the interrupt is set, clear it.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
ALT_E_TRUE | The timer interrupt is currently pending. |
ALT_E_FALSE | The timer interrupt is not currently pending. |
ALT_E_BAD_ARG | Invalid input argument. |