nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
Public Types | Public Member Functions | Data Fields
nrfcxx::gpio::instr_psel_scoped< INSTR_PSEL > Class Template Reference

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_scopedoperator= (const instr_psel_scoped &)=delete
 
 instr_psel_scoped (instr_psel_scoped &&)=default
 
instr_psel_scopedoperator= (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
 

Detailed Description

template<typename INSTR_PSEL>
class nrfcxx::gpio::instr_psel_scoped< INSTR_PSEL >

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.

Template Parameters
INSTR_PSELthe class of the instrumentation instance.

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