nrfcxx
0.1.0
C++-17 Framework for Nordic nRF5 Devices
|
RAII class to block exceptions. More...
#include <nrfcxx/core.hpp>
Public Member Functions | |
primask (const primask &)=delete | |
primask & | operator= (const primask &)=delete |
primask (primask &&)=delete | |
primask & | operator= (primask &)=delete |
RAII class to block exceptions.
The PRIMASK configuration is recorded and then disabled. When the instance is destructed the recorded PRIMASK configuration is restored.
Note that this class is safe to use in contexts where interrupts are already disabled: they will not be re-enabled when the object is destructed.