4.9.3.2 DIAG_INTERRUPT_Register
For the DIAG_INTERRUPT_Frequency API to monitor the interrupt modules for frequency test, the modules are added to interrupt module structure using this API.
bool DIAG_INTERRUPT_Register(
diag_interrupt_id_t id, uint16_t refCount, uint16_t tolerance, uint16_t fttiCount
)
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 |
