4.5.1 Functions
diag_result_t DIAG_INT_FrequencyRegister (diag_int_id_t intId, uint16_t refCount, uint16_t tolerance, uint16_t fdtiCount)
Registers an interrupt source to monitor. When any interrupt is registered, diag_int_params_t parameters are initialized with user-defined values and are later updated or monitored by 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_FrequencyInitialize (void)
Configures the callback function for reference RTC periodic interrupt.
void DIAG_INT_FrequencyCountInterrupt (diag_int_id_t intId)
Increments the intr_counter for the registered interrupt.
bool DIAG_INT_FrequencyIsResultReady (diag_int_id_t intId)
Returns the interrupt diagnosis status.
diag_result_t DIAG_INT_FrequencyGetResult (diag_int_id_t intId)
Returns the required interrupt frequency diagnosis. The result is set to DIAG_UNDEFINED after returning PASS or FAIL to ensure that the latest result from the diagnostic is returned.