2.1.2.5 DIAG_INT_FrequencyRegister()
diag_result_t DIAG_INT_FrequencyRegister (diag_int_id_t intId, uint16_t refCount, uint16_t tolerance, uint16_t fdtiCount)
Registers an interrupt for diagnosis. When any interrupt is registered, the diag_int_params_t parameters are initialized with user-defined values and are later updated or monitored by the DIAG_INT_Frequency function.
| in | intId |
- Unique ID for the interrupt to be monitored |
| in | refCount |
- Number of interrupts expected to occur within a given monitoring period |
| in | tolerance |
- Tolerance band for the number of interrupts which occur in the defined Fault Detection Time Interval (FDTI) |
| in | fdtiCount |
- Count to derive the FDTI 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 the reference ISR is called. When this counter reaches 1, it is time to check the intr_counter with the expected intr_ref_counter for interrupt under test with given intr_counter_tolerance. |
DIAG_PASS - Given interrupt source is registered successfully DIAG_FAIL - Given interrupt source is not registered DIAG_INVALID_ARG - Invalid input arguments when calling the function |
