Microchip® Advanced Software Framework

ext_int_megarf.c File Reference

External interrupt driver for megaRF.

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

#include <compiler.h>
#include "ioport.h"
#include <ext_int_megarf.h>

Functions

void ext_int_clear_flag (ioport_pin_t pin)
 Clear ext Interrupt flag. More...
 
void ext_int_disable (ioport_pin_t pin)
 Disable ext Interrupt. More...
 
void ext_int_enable (ioport_pin_t pin)
 Enable ext Interrupt. More...
 
void ext_int_init (ioport_pin_t pin, enum ioport_sense trigmode)
 Initializes ext Interrupt for the required interrupt Pin and trigger level Configures the interrupt pin as input pin, enables the pull of the pin, set the trigger mode clears the interrupt flag before enabling and enables the interrupt. More...
 
void ext_int_pcint_clear_flag (ioport_pin_t pin)
 Clear ext Interrupt flag. More...
 
void ext_int_pcint_disable (ioport_pin_t pin)
 Disable ext PC Interrupt. More...
 
void ext_int_pcint_enable (ioport_pin_t pin)
 Enable ext PC Interrupt. More...
 
void ext_int_pcint_init (ioport_pin_t pin)
 Initializes ext pin change Interrupt for the required interrupt Pin Configures the interrupt pin as input pin, enables the pull of the pin, clears the interrupt flag before enabling and enables the interrupt. More...
 
void ext_int_set_interrupt_callback (ioport_pin_t ext_int, ext_int_callback_t callback)
 Set external interrupt callback function. More...
 
 ISR (INT0_vect)
 Interrupt handler for External Interrupt INT0. More...
 
 ISR (INT1_vect)
 Interrupt handler for External Interrupt INT1. More...
 
 ISR (INT2_vect)
 Interrupt handler for External Interrupt INT2. More...
 
 ISR (INT3_vect)
 Interrupt handler for External Interrupt INT3. More...
 
 ISR (INT4_vect)
 Interrupt handler for External Interrupt INT4. More...
 
 ISR (INT5_vect)
 Interrupt handler for External Interrupt INT5. More...
 
 ISR (INT6_vect)
 Interrupt handler for External Interrupt INT6. More...
 
 ISR (INT7_vect)
 Interrupt handler for External Interrupt INT7. More...
 
 ISR (PCINT0_vect)
 Interrupt handler for PC External Interrupt INT0 - INT7. More...
 
 ISR (PCINT1_vect)
 Interrupt handler for PC External Interrupt INT8. More...
 

Variables

static ext_int_callback_t ext_int_int0_callback
 
static ext_int_callback_t ext_int_int1_callback
 
static ext_int_callback_t ext_int_int2_callback
 
static ext_int_callback_t ext_int_int3_callback
 
static ext_int_callback_t ext_int_int4_callback
 
static ext_int_callback_t ext_int_int5_callback
 
static ext_int_callback_t ext_int_int6_callback
 
static ext_int_callback_t ext_int_int7_callback
 
static ext_int_callback_t ext_int_pcint0_callback
 
static ext_int_callback_t ext_int_pcint1_callback
 

ISR ( INT0_vect  )

Interrupt handler for External Interrupt INT0.

This function will handle interrupt on External Interrupt INT0 and call the callback function.

References ext_int_int0_callback.

ISR ( INT1_vect  )

Interrupt handler for External Interrupt INT1.

This function will handle interrupt on External Interrupt INT1 and call the callback function.

References ext_int_int1_callback.

ISR ( INT2_vect  )

Interrupt handler for External Interrupt INT2.

This function will handle interrupt on External Interrupt INT2 and call the callback function.

References ext_int_int2_callback.

ISR ( INT3_vect  )

Interrupt handler for External Interrupt INT3.

This function will handle interrupt on External Interrupt INT3 and call the callback function.

References ext_int_int3_callback.

ISR ( INT4_vect  )

Interrupt handler for External Interrupt INT4.

This function will handle interrupt on External Interrupt INT4 and call the callback function.

References ext_int_int4_callback.

ISR ( INT5_vect  )

Interrupt handler for External Interrupt INT5.

This function will handle interrupt on External Interrupt INT5 and call the callback function.

References ext_int_int5_callback.

ISR ( INT6_vect  )

Interrupt handler for External Interrupt INT6.

This function will handle interrupt on External Interrupt INT6 and call the callback function.

References ext_int_int6_callback.

ISR ( INT7_vect  )

Interrupt handler for External Interrupt INT7.

This function will handle interrupt on External Interrupt INT7 and call the callback function.

References ext_int_int7_callback.

ISR ( PCINT0_vect  )

Interrupt handler for PC External Interrupt INT0 - INT7.

This function will handle interrupt on PC External Interrupt INT0-INT7 and call the callback function.

References ext_int_pcint0_callback.

ISR ( PCINT1_vect  )

Interrupt handler for PC External Interrupt INT8.

This function will handle interrupt on PC External Interrupt INT8 and call the callback function.

References ext_int_pcint1_callback.

ext_int_callback_t ext_int_int0_callback
static

Local storage of EXT_INT0 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().

ext_int_callback_t ext_int_int1_callback
static

Local storage of EXT_INT1 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().

ext_int_callback_t ext_int_int2_callback
static

Local storage of EXT_INT2 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().

ext_int_callback_t ext_int_int3_callback
static

Local storage of EXT_INT3 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().

ext_int_callback_t ext_int_int4_callback
static

Local storage of EXT_INT4 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().

ext_int_callback_t ext_int_int5_callback
static

Local storage of EXT_INT0 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().

ext_int_callback_t ext_int_int6_callback
static

Local storage of EXT_INT6 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().

ext_int_callback_t ext_int_int7_callback
static

Local storage of EXT_INT7 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().

ext_int_callback_t ext_int_pcint0_callback
static

Local storage of PC_EXT_INT0 to PC_EXT_INT7 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().

ext_int_callback_t ext_int_pcint1_callback
static

Local storage of PC_EXT_INT8 interrupt callback function

Referenced by ext_int_set_interrupt_callback(), and ISR().