3.3.23.2 Functions
-
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. .
-
static uint16_t abs_diff (uint16_t a, uint16_t b)
-
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.
-
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.
-
bool DIAG_INTERRUPT_Unregister (diag_interrupt_id_t id)
This API unregisters an interrupt from frequency diagnosis.
-
diag_interrupt_test_status_t DIAG_INTERRUPT_GetResult (diag_interrupt_id_t id)
This API returns the result frequency diagnosis for required interrupt.