Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
TivaCpuLoadDefHw Struct Reference

Default hardware structure for the TivaCpuLoad driver. More...

#include <TivaCpuLoad.hxx>

Static Public Attributes

static constexpr auto TIMER_BASE = TIMER4_BASE
 Timer address base to use.
 
static constexpr unsigned TIMER = TIMER_A
 Which side of the timer we should be using.
 
static constexpr auto TIMER_PERIPH = SYSCTL_PERIPH_TIMER4
 Peripheral constant to enable the clock output on.
 
static constexpr auto TIMER_INTERRUPT = INT_TIMER4A
 Interrupt ID belonging to the given timer.
 
static constexpr unsigned TIMER_PERIOD = 80000000 / 127
 Period in clock cycles to tick upon for the Cpu Load calculation.
 

Detailed Description

Default hardware structure for the TivaCpuLoad driver.

Definition at line 44 of file TivaCpuLoad.hxx.

Member Data Documentation

◆ TIMER

constexpr unsigned TivaCpuLoadDefHw::TIMER = TIMER_A
staticconstexpr

Which side of the timer we should be using.

Definition at line 49 of file TivaCpuLoad.hxx.

◆ TIMER_BASE

constexpr auto TivaCpuLoadDefHw::TIMER_BASE = TIMER4_BASE
staticconstexpr

Timer address base to use.

Definition at line 47 of file TivaCpuLoad.hxx.

◆ TIMER_INTERRUPT

constexpr auto TivaCpuLoadDefHw::TIMER_INTERRUPT = INT_TIMER4A
staticconstexpr

Interrupt ID belonging to the given timer.

Definition at line 53 of file TivaCpuLoad.hxx.

◆ TIMER_PERIOD

constexpr unsigned TivaCpuLoadDefHw::TIMER_PERIOD = 80000000 / 127
staticconstexpr

Period in clock cycles to tick upon for the Cpu Load calculation.

Definition at line 55 of file TivaCpuLoad.hxx.

◆ TIMER_PERIPH

constexpr auto TivaCpuLoadDefHw::TIMER_PERIPH = SYSCTL_PERIPH_TIMER4
staticconstexpr

Peripheral constant to enable the clock output on.

Definition at line 51 of file TivaCpuLoad.hxx.


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