nrfcxx
0.1.0
C++-17 Framework for Nordic nRF5 Devices
|
RAII class for scoped instrumentation. More...
#include <nrfcxx/gpio.hpp>
Public Types | |
using | instr_psel_type = INSTR_PSEL |
Public Member Functions | |
constexpr | instr_psel_scoped (const instr_psel_type &instance_, bool start_set) |
instr_psel_scoped (const instr_psel_scoped &)=delete | |
instr_psel_scoped & | operator= (const instr_psel_scoped &)=delete |
instr_psel_scoped (instr_psel_scoped &&)=default | |
instr_psel_scoped & | operator= (instr_psel_scoped &&)=delete |
void | assert () const |
Forward to instr_psel::assert(). | |
void | deassert () const |
Forward to instr_psel::deassert(). | |
void | set (bool asserted) const |
Forward to instr_psel::set(). | |
void | toggle () const |
Forward to instr_psel::toggle(). | |
Data Fields | |
const instr_psel_type & | instance |
RAII class for scoped instrumentation.
When constructed the referenced scope instance is enabled and set to the specified initial state. On destruction the instance is cleared and disabled.
INSTR_PSEL | the class of the instrumentation instance. |