9.1.1 diag_interrupt_params_t Struct

This structure holds the initial and runtime values of all the parameters required for interrupt frequency diagnosis performed by DIAG_INTERRUPT_Frequency function. Initially, for each interrupt that is registered and to be monitored for the frequency test, the structure parameters are initialized with user defined values received in DIAG_INTERRUPT_Register API. Later, when test is running, parameters are 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 actual number of interrupts occured in the current monitoring period defined by reference RTC interrupt.
uint16_t intr_ref_counter
This holds the number of interrupts expected to occur within a given monitoring period.
uint16_t intr_counter_tolerance
The tolerance band for the number of interrupts which occur in the defined FDTI. This parameters holds the user defined tolerence for intr_ref_counter(structdiag__interrupt__params__t) .
uint16_t intr_fdti_counter
This is the Fualt Detection Time Interval for the interrupt registered for monitoring. FDTI is the time interval between the occurrence of a fault and its detection. This count gets decremented every time reference ISR is called. When this counter reaches zero, means its time to check the intr_counter(structdiag__interrupt__params__t) with expected intr_ref_counter(structdiag__interrupt__params__t) for interrupt under test with given intr_counter_tolerance(structdiag__interrupt__params__t) .
uint16_t intr_fdti
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 from monitoring. When faulire is detected for any registered interrupt, diagnostic test will stop monitoring that interrupt by setting this variable to