3.15.24 diag_intr_freq.c File Reference

This file contains the API to perform Interrupt Frequency test.

Includes

  1. diag_intr_freq.h
  2. stdio.h
  3. ../../diag_common/config/diag_config.h

Functions

Table 3-53. boolDIAG_INTERRUPT_Register (diag_interrupt_id_t id, uint16_t refCount, uint16_t tolerance, uint16_t ftti)
Parameters

[in] id

diag_interrupt_id_t

- ID for interrupt to be monitored

[in] refCount

uint16_t

- The expected number of interrupts within monitoring period

[in] tolerance

uint16_t

- Limit for deviation in the counter

[in] fttiCount

uint16_t

- Count which when reaches zero checks the interrupt frequency. If fttiCount is non-zero, that means the interrupt frequency check should be skipped for that instance and intr_counter should not be incremented

Returns
bool bool
Table 3-54. uint16_tabs_diff (uint16_t a, uint16_t b)
Parameters
a uint16_t
b uint16_t
Returns
None
None
Table 3-55. voidDIAG_INTERRUPT_Frequency (void)
Parameters
void
Returns
void None
Table 3-56. voidDIAG_INTERRUPT_Initialize (void)
Parameters
void
Returns
void None
Table 3-57. voidDIAG_INTERRUPT_UpdateInterruptCounter (diag_interrupt_id_t interruptModule)
Parameters

[in] id

- ID for the interrupt to be updated

Returns
void None
Table 3-58. boolDIAG_INTERRUPT_Unregister (diag_interrupt_id_t id)
Parameters

[in] id

diag_interrupt_id_t

- ID for the interrupt to be unregistered

Returns
bool bool
Table 3-59. diag_interrupt_test_status_tDIAG_INTERRUPT_GetResult (diag_interrupt_id_t id)
Parameters
id diag_interrupt_id_t
Returns
diag_interrupt_test_status_t DIAG_INTR_PASS - Success, DIAG_INTR_FAIL - Failure, DIAG_INTR_INVALID - Indeterminate