nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
Data Structures | Namespaces | Functions
clock.hpp File Reference

Core clock-related functionality. More...

#include <chrono>
#include <functional>
#include <nrfcxx/impl.hpp>
#include <nrfcxx/periph.hpp>

Go to the source code of this file.

Data Structures

class  nrfcxx::clock::hfclk
 Functions and data related to the high-frequency clock. More...
 
class  nrfcxx::clock::lfclk
 Functions and data related to the low-frequency clock. More...
 
class  nrfcxx::clock::uptime
 Support for a persistent system clock with 32 KiHz resolution. More...
 
class  nrfcxx::clock::uptime::timestamp24
 Class supporting short-term duration measurements. More...
 
class  nrfcxx::clock::alarm
 Class supporting an alarm with custom callback and repeatability. More...
 
class  nrfcxx::clock::clock_shift
 Support for converting between time domains with the same resolution but unstable clocks. More...
 

Namespaces

 nrfcxx
 Primary namespace for nrfcxx functionality.
 
 nrfcxx::clock
 Functions and classes related to clocks and time.
 

Functions

int nrfcxx::clock::initialize (bool enable_hfxt=false, int lfclk_src=board::default_lfclk_src(), unsigned int lfrc_cal_interval_qs=lfclk::DefaultRCOCalInterval_qs)
 Initialize the clock system. More...
 
bool nrfcxx::clock::configure_pcirq (int on)
 Query or control whether the POWER_CLOCK interrupt handler is enabled. More...
 
constexpr uptime::duration_type nrfcxx::clock::operator""_utt (unsigned long long n)
 User-defined literal support for uptime ticks. More...
 

Detailed Description

Core clock-related functionality.