Microchip® Advanced Software Framework

extint_callback.c File Reference

SAM External Interrupt Driver.

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

#include "extint.h"
#include "extint_callback.h"

Functions

void EIC_Handler (void)
 Handler for the EXTINT hardware module interrupt. More...
 
enum status_code extint_chan_disable_callback (const uint8_t channel, const enum extint_callback_type type)
 Disables asynchronous callback generation for a given channel and type. More...
 
enum status_code extint_chan_enable_callback (const uint8_t channel, const enum extint_callback_type type)
 Enables asynchronous callback generation for a given channel and type. More...
 
uint8_t extint_get_current_channel (void)
 Find what channel caused the callback. More...
 
enum status_code extint_register_callback (const extint_callback_t callback, const uint8_t channel, const enum extint_callback_type type)
 Registers an asynchronous callback function with the driver. More...
 
enum status_code extint_unregister_callback (const extint_callback_t callback, const uint8_t channel, const enum extint_callback_type type)
 Unregisters an asynchronous callback function with the driver. More...
 

Variables

uint8_t _current_channel
 
struct _extint_module _extint_dev
 

void EIC_Handler ( void  )

Handler for the EXTINT hardware module interrupt.

References _current_channel, _extint_dev, EIC_NUMBER_OF_INTERRUPTS, extint_chan_clear_detected(), extint_chan_is_detected(), and NULL.

uint8_t _current_channel

This is the number of the channel whose callback is currently running.

Referenced by EIC_Handler(), and extint_get_current_channel().

struct _extint_module _extint_dev

Internal driver device instance struct, declared in the main module driver.

Internal driver device instance struct.

Referenced by _system_extint_init(), EIC_Handler(), extint_register_callback(), and extint_unregister_callback().