nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
Public Member Functions
nrfcxx::primask Class Reference

RAII class to block exceptions. More...

#include <nrfcxx/core.hpp>

Public Member Functions

 primask (const primask &)=delete
 
primaskoperator= (const primask &)=delete
 
 primask (primask &&)=delete
 
primaskoperator= (primask &)=delete
 

Detailed Description

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.


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