This file contains data structures and API prototypes for Interrupt Frequency Test.
Includes
- stdbool.h
- stdint.h
- ../../diag_common/config/diag_config.h
Enums
This enumeration holds the status of interrupt frequency test.
This enumeration indicates if interrupt is being monitored or is being ignored for monitoring. In case if there is a failure detected for any interrupt monitoring, diagnostics test will stop monitoring that interrupt anymore by setting this variable to DIAG_INTR_OFF.
- diag_interrupt_test_status_t
- DIAG_INTR_PASS
-
0 - Interrupt test is passed
- DIAG_INTR_FAIL
-
1 - Interrupt test is failed
- DIAG_INTR_INVALID
-
2 - Interrupt test is invalid
- diag_interrupt_mon_status_t
- DIAG_INTR_ON
-
0 - Interrupt is registered and being monitored
- DIAG_INTR_OFF
-
1 - Interrupt is registered but not being monitored
Functions
Table 16-61. boolDIAG_INTERRUPT_Register (diag_interrupt_id_t intrId, uint16_t refCount, uint16_t tolerance, uint16_t ftti)
Parameters |
[in] intrId
|
diag_interrupt_id_t
- ID for interrupt to be monitored
|
[in] refCount
|
uint16_t
- The expected number of interrupts within monitoring period
|
[in] tolerance
|
uint16_t
- Limit for deviation in the counter
|
[in] ftti
|
uint16_t
- Count which when reaches zero checks the interrupt frequency. If fttiCount is non-zero, that means the interrupt frequency check should be skipped for that instance and intr_counter should not be incremented
|
|
Returns |
|
Table 16-62. boolDIAG_INTERRUPT_Unregister (diag_interrupt_id_t intrId)
Parameters |
[in] intrId
|
diag_interrupt_id_t
- ID for the interrupt to be unregistered
|
|
Returns |
|
Table 16-63. voidDIAG_INTERRUPT_Initialize (void)
Parameters |
|
Returns |
|
Table 16-64. voidDIAG_INTERRUPT_UpdateInterruptCounter (diag_interrupt_id_t intrId)
Parameters |
[in] intrId
|
diag_interrupt_id_t
- ID for the interrupt to be updated.
|
|
Returns |
|
Table 16-65. diag_interrupt_test_status_tDIAG_INTERRUPT_GetStatus (diag_interrupt_id_t intrId)
Parameters |
[in] intrId
|
diag_interrupt_id_t
- ID of the interrupt for which test status is requested.
|
|
Returns |
diag_interrupt_test_status_t
| DIAG_INTR_PASS - Success,
DIAG_INTR_FAIL - Failure,
DIAG_INTR_INVALID - Indeterminate
|
|