modm API documentation
modm::platform::ExtInt< instance > Class Template Reference

#include <modm/platform/extint/extint.hpp>

Inheritance diagram for modm::platform::ExtInt< instance >:
modm::platform::ExternalInterrupt

Static Public Member Functions

static void initialize (std::function< void ()> handler, InputTrigger trigger=InputTrigger::RisingEdge, bool wakeupEnabled=true)
 
template<class GpioPin >
static void connect ()
 

Static Private Member Functions

static void initialize (ClockGenerator clockGen, int priority=(1ul<< __NVIC_PRIO_BITS)-1ul)
 

Detailed Description

template<int instance>
class modm::platform::ExtInt< instance >

External Interrupt instance for SAMD devices.

Author
Erik Henriksson

Member Function Documentation

template<int instance>
template<class GpioPin >
static void modm::platform::ExtInt< instance >::connect ( )
inlinestatic

Connects a GPIO pin to this External Interrupt instance.

Template Parameters
PinThe GPIO pin to connect this instance to.
template<int instance>
static void modm::platform::ExtInt< instance >::initialize ( std::function< void ()>  handler,
InputTrigger  trigger = InputTrigger::RisingEdge,
bool  wakeupEnabled = true 
)
static

Initializes the External Interrupt instance.

Parameters
handlerFunction that will be called for any interrupts.
triggerSpecifies the edge detection trigger to use (default is rising edge).
wakeupEnabledIf true (default), allows the CPU to wakeup from interrupt from this instance.

The documentation for this class was generated from the following file: