EmlaLockSafe
|
Class used to globally disable enable interrupts. More...
#include <UsedInterrupts.h>
Static Public Member Functions | |
static void | attach () |
attach the encoder pins to a interrupt More... | |
static void | detach () |
detach the interrupts More... | |
static void | executeWithoutInterrupts (std::function< void(void)> f) |
Execute the passed function without interrupts. More... | |
Static Private Attributes | |
static bool | interruptsAttached = false |
true if at attach() was called at least once More... | |
Class used to globally disable enable interrupts.
The interrupts must e.g. disabled when accessing the SPI Filesystem
|
inlinestatic |
attach the encoder pins to a interrupt
|
inlinestatic |
detach the interrupts
|
inlinestatic |
Execute the passed function without interrupts.
f | function / lambda which should be executed |
|
staticprivate |
true if at attach() was called at least once