Microchip® Advanced Software Framework

classb_intmon_interrupt Struct Reference

Data structure for the interrupts that are monitored.

The main application has to register the interrupt by calling classb_intmon_reg_int(). It is that function that sets the values of the structure.

#include <classb_interrupt_monitor.h>

Data Fields

uint16_t count
 Interrupt counter. More...
 
uint16_t expected
 Expected number of interrupts in the monitor period. More...
 
uint16_t limit
 Limit for deviation in the counter. More...
 
enum classb_int_states state
 State of the interrupt. More...
 

uint16_t classb_intmon_interrupt::count

Interrupt counter.

This holds the number of interrupt occurrences in the current monitor period.

Referenced by classb_intmon_callback(), classb_intmon_increase(), and classb_intmon_reg_int().

uint16_t classb_intmon_interrupt::expected

Expected number of interrupts in the monitor period.

The monitor period is defined by CLASSB_RTC_INT_PERIOD and CLASSB_RTC_FREQ.

Referenced by classb_intmon_callback(), and classb_intmon_reg_int().

uint16_t classb_intmon_interrupt::limit

Limit for deviation in the counter.

Referenced by classb_intmon_callback(), and classb_intmon_reg_int().

enum classb_int_states classb_intmon_interrupt::state

State of the interrupt.

Referenced by classb_intmon_callback(), classb_intmon_reg_int(), and classb_intmon_set_state().