Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::system::Epoch< Port > Class Template Reference

Detailed Description

template<class Port>
class sbl::system::Epoch< Port >

Definition at line 27 of file epoch.hpp.

Static Public Member Functions

static void on_overflow ()
 
static uint64_t count64 ()
 
static uint32_t epoch ()
 
static void reset ()
 

Member Function Documentation

◆ on_overflow()

template<class Port >
static void sbl::system::Epoch< Port >::on_overflow ( )
inlinestatic

The port's overflow handler: Port::setup(&Epoch<Port>::on_overflow).

Definition at line 30 of file epoch.hpp.

◆ count64()

template<class Port >
static uint64_t sbl::system::Epoch< Port >::count64 ( )
inlinestatic

The count since the port started, 64 bits.

Definition at line 38 of file epoch.hpp.

Referenced by sbl::system::timer::count64().

◆ epoch()

template<class Port >
static uint32_t sbl::system::Epoch< Port >::epoch ( )
inlinestatic

Wraps counted so far.

Definition at line 53 of file epoch.hpp.

◆ reset()

template<class Port >
static void sbl::system::Epoch< Port >::reset ( )
inlinestatic

Start over; for a port that restarts, and for tests.

Definition at line 56 of file epoch.hpp.

Referenced by sbl::system::timer::init().


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