Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
TivaCpuLoad< HW > Class Template Reference

Driver to collect CPU load information (in freertos) using a Tiva hardware timer. More...

#include <TivaCpuLoad.hxx>

Public Member Functions

 TivaCpuLoad ()
 Constructor.
 
void interrupt_handler (unsigned p)
 Call this function from extern "C" void timer4a_interrupt_handler().
 

Static Public Member Functions

static void setup ()
 Creates the timer configuration for the tick interrupt.
 

Public Attributes

CpuLoad load_
 The singleton implementation we delegate collecting the CPULoad information.
 

Detailed Description

template<class HW>
class TivaCpuLoad< HW >

Driver to collect CPU load information (in freertos) using a Tiva hardware timer.

At any point in time there can be only one instance of this class.

Definition at line 61 of file TivaCpuLoad.hxx.

Constructor & Destructor Documentation

◆ TivaCpuLoad()

template<class HW >
TivaCpuLoad< HW >::TivaCpuLoad ( )
inline

Constructor.

Definition at line 64 of file TivaCpuLoad.hxx.

Member Function Documentation

◆ interrupt_handler()

template<class HW >
void TivaCpuLoad< HW >::interrupt_handler ( unsigned  p)
inline

Call this function from extern "C" void timer4a_interrupt_handler().

Definition at line 88 of file TivaCpuLoad.hxx.

◆ setup()

template<class HW >
static void TivaCpuLoad< HW >::setup ( )
inlinestatic

Creates the timer configuration for the tick interrupt.

Definition at line 69 of file TivaCpuLoad.hxx.

Member Data Documentation

◆ load_

template<class HW >
CpuLoad TivaCpuLoad< HW >::load_

The singleton implementation we delegate collecting the CPULoad information.

Definition at line 96 of file TivaCpuLoad.hxx.


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