4.2.2 Functions
static uint16_t abs_diff (uint16_t a, uint16_t b)
static void DIAG_INT_Frequency (void)
diag_result_t DIAG_INT_FrequencyRegister (diag_int_id_t intId, uint16_t refCount, uint16_t tolerance, uint16_t fdtiCount)
Registers an interrupt for diagnosis. When any interrupt is registered, the diag_int_params_t parameters are initialized with user-defined values and are later updated or monitored by the DIAG_INT_Frequency function.
diag_result_t DIAG_INT_FrequencyUnregister (diag_int_id_t intId)
Unregisters an interrupt from the frequency diagnosis.
void DIAG_INT_FrequencyCountInterrupt (diag_int_id_t intId)
Increments the intr_counter for the registered interrupt.
void DIAG_INT_FrequencyInitialize (void)
Configures the callback function for the reference RTC periodic interrupt.
bool DIAG_INT_FrequencyIsResultReady (diag_int_id_t intId)
Returns the status of the interrupt diagnosis.
diag_result_t DIAG_INT_FrequencyGetResult (diag_int_id_t intId)
Returns the result frequency diagnosis for the required interrupt. The result is set to DIAG_UNDEFINED after returning PASS or FAIL to ensure that the latest result from the diagnostic is returned.