Atmel Software Framework

classb_interrupt_monitor.h File Reference

Settings and definitions for the interrupt monitor.

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

Copyright (C) 2011-2015 Atmel Corporation. All rights reserved.

#include <asf.h>
#include "classb_rtc_common.h"
#include "error_handler.h"

Data Structures

struct  classb_intmon_interrupt
 Data structure for the interrupts that are monitored. More...
 

Macros

#define CLASSB_STRICT_INTMON
 Behavior for re-enabling or re-disabling monitoring of interrupts. More...
 

Enumerations

enum  classb_int_identifiers {
  TEMP_SANITY_TEST,
  PER_CLASSB_TESTS,
  N_INTERRUPTS
}
 Enumeration of interrupt identifiers. More...
 
enum  classb_int_states {
  ON,
  OFF,
  M_ENABLE,
  M_DISABLE
}
 Enumeration of interrupt states. More...
 

Functions

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 interrupt_counter, uint8_t tolerance_percent)
 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...