14.26 diag_intr_freq.c File Reference

This file contains APIs for Interrupt Frequency test.

Includes

  1. diag_intr_freq.h

Functions

Table 14-50. uint16_tabs_diff (uint16_t a, uint16_t b)
Parameters
a uint16_t
b uint16_t
Returns
None
None
Table 14-51. voidDIAG_INTERRUPT_Frequency (void)
Parameters
void
Returns
void None
Table 14-52. boolDIAG_INTERRUPT_Register (diag_interrupt_id_t intrId, uint16_t refCount, uint16_t tolerance, uint16_t fdtiCount)
Parameters

[in] intrId

diag_interrupt_id_t

- Unique ID for the interrupt to be monitored

[in] refCount

uint16_t

- The number of interrupts expected to occur within a given monitoring period

[in] tolerance

uint16_t

- The tolerance band for the number of interrupts which occur in the defined FDTI

[in] fdtiCount

uint16_t

- This is the count to derive Fault 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 1, its time to check the intr_counter with expected intr_ref_counter for interrupt under test with given intr_counter_tolerance.

Returns
bool bool
Table 14-53. boolDIAG_INTERRUPT_Unregister (diag_interrupt_id_t intrId)
Parameters

[in] intrId

diag_interrupt_id_t

- ID for the interrupt to be unregistered

Returns
bool bool
Table 14-54. voidDIAG_INTERRUPT_UpdateInterruptCounter (diag_interrupt_id_t intrId)
Parameters

[in] intrId

diag_interrupt_id_t

- ID for the interrupt being diagnosed.

Returns
void None
Table 14-55. voidDIAG_INTERRUPT_Initialize (void)
Parameters
void
Returns
void None
Table 14-56. diag_interrupt_test_status_tDIAG_INTERRUPT_GetStatus (diag_interrupt_id_t intrId)
Parameters

[in] intrId

diag_interrupt_id_t

- ID of the interrupt for which test status to be obtained.

Returns
diag_interrupt_test_status_t DIAG_INTR_PASS, DIAG_INTR_FAIL, DIAG_INTR_INVALID - Indeterminate