nrfcxx
0.1.0
C++-17 Framework for Nordic nRF5 Devices
|
Resource allocation manager for PPI module. More...
#include <nrfcxx/periph.hpp>
Public Types | |
using | event_reference_type = __O uint32_t & |
Type for a reference to a peripheral event. | |
using | task_reference_type = __IO uint32_t & |
Type for a reference to a peripheral task. | |
Static Public Member Functions | |
static int | request () |
Allocate a PPI channel for application use. More... | |
static int | release (int ppi) |
Release a previously allocated PPI channel. More... | |
static int | group_request () |
Allocate a PPI channel group for application use. More... | |
static int | group_release (int ppi) |
Release a previously allocated PPI channel group. More... | |
static uint32_t | configure (int ppidx, event_reference_type eep, task_reference_type tep) |
Configure a PPI channel. More... | |
static uint32_t | CHENSET (uint32_t v) |
Abstraction to enable a set of PPI channels. | |
static uint32_t | CHENCLR (uint32_t v) |
Abstraction to disable a set of PPI channels. | |
static uint32_t | CHEN () |
Abstraction to read the set of enabled PPI channels. | |
Static Protected Member Functions | |
static uint32_t | CHENSET_ (uint32_t v) |
static uint32_t | CHENCLR_ (uint32_t v) |
static uint32_t | CHEN_ () |
static uint32_t | configure_ (int ppidx, event_reference_type eep, task_reference_type tep) |
Resource allocation manager for PPI module.
Used to avoid the need for compile-time assignment of channels or channel groups to functions. Also provides an abstraction that will ultimately support the supervisor calls required for soft devices.
|
inlinestatic |
|
static |
Release a previously allocated PPI channel group.
|
static |
|
static |
Release a previously allocated PPI channel.
|
static |