12.1.1 diag_interrupt_params_t Struct

This is the interrupt model structure that is used in the DIAG_INTERRUPT_Frequency. Initially, for each interrupt that is registered and to be monitored for the frequency test, the structure parameters are initialized as specified in DIAG_INTERRUPT_Register API. Later, when test is running, structure elements will be continuously updated to hold the actual values to be used to evaluate the test.

Members

diag_interrupt_id_t intr_id
This is the unique module Interrupt Identifier for every interrupt source as listed in diag_config.h
uint16_t intr_counter
This is the counter that gets incremented in the ISR of the respective interrupt. This holds the number of interrupt occurrences in the current monitor period defined by reference RTC interrupt.
uint16_t intr_ref_counter
This is the expected number of interrupts that need to occur within a given monitoring period.
uint16_t intr_counter_tolerance
This parameters holds the tolerence for . This tolerance band is specified for every interrupt monitored for interrupt frequency.
uint16_t intr_ftti_counter
This count gets decremented every time reference ISR is called. When this counter reaches zero, means its time to check the of interrupt under test with given tolerance.
uint16_t intr_ftti
12.2.1 diag_interrupt_test_status_t Enum intr_test_status
This indicates the status of interrupt monitoring.
12.2.2 diag_interrupt_mon_status_t Enum intr_mon_status
This 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