This functional group implements management of the interrupts of the watchdog timers.
Disables the interrupt of the specified watchdog timer module. If the watchdog timer is one of the watchdog timers that can be used in general-purpose mode, and if the timer is in general-purpose timer mode, disable the interrupt.
- 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 | Specified an incorrect timer. |
Sets/enables the interrupt of the specified watchdog timer module. If the watchdog timer is one of the watchdog timers that can be used in general-purpose mode, and if the timer is in general-purpose timer mode, enable the interrupt.
- 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 | Specified an incorrect timer. |
Returns the status of the interrupt of the specified watchdog timer module but does not clear it. Return TRUE if the interrupt of the specified general purpose timer module is pending and FALSE otherwise.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
TRUE | The timer interrupt is currently pending. |
FALSE | The timer interrupt is not currently pending. |
Returns the state of the interrupt of the specified watchdog timer module. If the watchdog timer is one of the watchdog timers that can be used in general-purpose mode, and if the timer is in general-purpose timer mode, returns TRUE if the interrupt of the specified general purpose timer module is enabled and FALSE if disabled. If the timer is not in general-purpose timer mode, returns /b TRUE, as watchdog interrupts are always enabled.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
TRUE | The timer interrupt is currently pending. |
FALSE | The timer interrupt is not currently pending. |
Clears the pending status of the interrupt of the specified watchdog timer module.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
ALT_E_SUCCESS | The operation was successful. |
ALT_E_ERROR | The operation failed. |
Returns the status of the interrupt of the specified watchdog timer module and also clears it. Return TRUE if the interrupt of the specified general purpose timer module is pending and FALSE otherwise.
- Parameters
-
tmr_id | The timer identifier. |
- Return values
-
TRUE | The timer interrupt was pending. |
FALSE | The timer interrupt was not pending. |