Microchip® Advanced Software Framework

classb_interrupt_monitor.c File Reference

Interrupt monitor.

Application note:
AVR1610: Guide to IEC60730 Class B compliance with XMEGA

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

Functions

static uint16_t abs_diff (uint16_t a, uint16_t b)
 Return the absolute value of the difference between two numbers. More...
 
void classb_intmon_callback (void)
 The interrupt monitor. More...
 
void classb_intmon_increase (enum classb_int_identifiers identifier)
 Increase the counter for the specified interrupt. More...
 
void classb_intmon_reg_int (enum classb_int_identifiers identifier, uint16_t reference, uint8_t tolerance)
 Register an interrupt. More...
 
void classb_intmon_set_state (enum classb_int_identifiers identifier, enum classb_int_states state)
 Set a state for the specified interrupt. More...
 

Variables

static struct
classb_intmon_interrupt 
monitored_interrupts [N_INTERRUPTS]
 Array of data structures for the monitored interrupts. More...
 

static uint16_t abs_diff ( uint16_t  a,
uint16_t  b 
)
inlinestatic

Return the absolute value of the difference between two numbers.

Referenced by classb_intmon_callback().