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

Class supporting GPIO instrumentation triggered by peripheral events. More...

#include <nrfcxx/periph.hpp>

Public Member Functions

 instr_psel_gpiote (unsigned int psel, PPI::event_reference_type eep, bool enable=true)
 Construct the instance. More...
 
 instr_psel_gpiote (const instr_psel_gpiote &)=delete
 
instr_psel_gpioteoperator= (const instr_psel_gpiote &)=delete
 
 instr_psel_gpiote (instr_psel_gpiote &&)=delete
 
instr_psel_gpioteoperator= (instr_psel_gpiote &&)=delete
 
 operator bool () const
 Implicit cast to bool, true if the instrumentation has its required instances.
 
void enable ()
 Enable the link from the event to the GPIO.
 
void disable ()
 Disable the link from the event to the GPIO.
 

Detailed Description

Class supporting GPIO instrumentation triggered by peripheral events.

Instances of this link a GPIO identified by PSEL with an event register. When enabled each event triggers a polarity change in the GPIO.

Note
As long as the instance exists one GPIOTE channel and one PPI channel will be assigned to it. If allocation fails during construction the bool value of the instance will be false.

Constructor & Destructor Documentation

◆ instr_psel_gpiote()

nrfcxx::periph::instr_psel_gpiote::instr_psel_gpiote ( unsigned int  psel,
PPI::event_reference_type  eep,
bool  enable = true 
)
inline

Construct the instance.

Parameters
pselthe GPIO pin selector for the line that should be toggled on events.
eepthe event end point that triggers changes in line state.
enableif true (default) the instance is automatically enabled when it is constructed.

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