#include <modm/platform/extint/extint.hpp>
|
static void | initialize (std::function< void ()> handler, InputTrigger trigger=InputTrigger::RisingEdge, bool wakeupEnabled=true) |
|
template<class GpioPin > |
static void | connect () |
|
|
static void | initialize (ClockGenerator clockGen, int priority=(1ul<< __NVIC_PRIO_BITS)-1ul) |
|
template<int instance>
class modm::platform::ExtInt< instance >
External Interrupt instance for SAMD devices.
- Author
- Erik Henriksson
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
-
Pin | The 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
-
handler | Function that will be called for any interrupts. |
trigger | Specifies the edge detection trigger to use (default is rising edge). |
wakeupEnabled | If true (default), allows the CPU to wakeup from interrupt from this instance. |
The documentation for this class was generated from the following file: