3.9.1.1 diag_interrupt_params_t Struct

This is the interrupt model structure that is used in the DIAG_INTERRUPT_Frequency. For each Interrupt source that is to be monitored for the interrupt frequency test, the structure is updated with the information as described for each and every member of this structure.

Members

diag_interrupt_id_t intr_id
This is the unique module Interrupt identifier number, 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 monitored module for the interrupt occurrence. This holds the number of interrupt occurrences in the current monitor period
uint16_t intr_ref_counter
This is the expected number of interrupts that need to occur for the monitored module within a given monitoring period.
uint16_t intr_counter_tolerance
Limit for deviation in the counter. Every module is expected to provide precise number of interrupts in a given time interval. However, there is a tolerance band within which, the number of interrupts for the module is acceptable. This tolerance band is specified for every module monitored for interrupt frequency.
uint16_t intr_ftti_counter
There are two types of module interrupt behaviours that need to be monitored by the DIAG_InterruptTest; Periodic and Rare. If the interrupts occur once every FTTI tick then, the interrupt would qualify as periodic and if it occurs once every 1000 FTTI ticks, it would qualify as interrupts that need to be monitored rarely. This count gets decremented every time reference ISR is called. When this counter reaches zero, means its time to check the interrupt counter with given tolerance
uint16_t intr_ftti
diag_interrupt_test_status_t Enum intr_test_status
This indicates the status of interrupt monitoring.
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 DIAG_INTR_OFF