4.1.9.1.3 Functions
-
static void DIAG_INTERRUPT_Frequency (void)
**The interrupt frequency test implements the time-slot monitoring of the program sequence (H.2.18.10.4) defined by the IEC 60730 standard. ** This API is invoked at specific time intervals which is triggered by a timer to monitor and verify the interrupt operation. A dedicated counter in each ISR is decremented when the interrupt occurs. In the timer, the DIAG_INTERRUPT_Frequency is called periodically at a defined frequency. The DIAG_INTERRUPT_Frequency needs to be called from a timer ISR.
-
bool DIAG_INTERRUPT_Register (diag_interrupt_id_t id, uint16_t refCount, uint16_t tolerance, uint16_t fdtiCount)
This API registers an interrupt for diagnosis. When any interrupt is registered, diag_interrupt_params_t parameters are initialized with user defined values and are later updated or monitored by DIAG_INTERRUPT_Frequency function.
-
void DIAG_INTERRUPT_Initialize (void)
This API configures the callback function for reference periodic interrupt, and starts the reference timer.
-
void DIAG_INTERRUPT_UpdateInterruptCounter (diag_interrupt_id_t id)
This API increments the intr_counter for the registered interrupt.
-
diag_interrupt_test_status_t DIAG_INTERRUPT_GetResult (diag_interrupt_id_t id)
This API returns the result frequency diagnosis for required interrupt.
-
bool DIAG_INTERRUPT_Unregister (diag_interrupt_id_t id)
This API unregisters an interrupt from frequency diagnosis.