3-phase PV router
Loading...
Searching...
No Matches
TestSource< PHASES > Struct Template Reference

A data source of writeFrameStep(): 2 loads, 1 relay, 2 temperature sensors (the 2nd invalid). More...

Inheritance diagram for TestSource< PHASES >:

Static Public Member Functions

static uint16_t absenceCount ()
 
static uint16_t absenceCount ()
 
static int16_t loadOnPercent (uint8_t idx)
 
static int16_t loadOnPercent (uint8_t idx)
 
static uint8_t lowestSampleSetsPerCycle ()
 
static uint8_t lowestSampleSetsPerCycle ()
 
static bool offPeak ()
 
static bool offPeak ()
 
static int16_t phasePower (uint8_t idx)
 
static int16_t phasePower (uint8_t idx)
 
static uint16_t phaseVoltage (uint8_t idx)
 
static uint16_t phaseVoltage (uint8_t idx)
 
static int16_t power ()
 
static int16_t power ()
 
static int16_t relayAverage ()
 
static int16_t relayAverage ()
 
static bool relayOn (uint8_t idx)
 
static bool relayOn (uint8_t)
 
static uint16_t sampleSets ()
 
static uint16_t sampleSets ()
 
static int16_t temperature (uint8_t idx)
 
static int16_t temperature (uint8_t)
 
static bool temperatureValid (uint8_t idx)
 
static bool temperatureValid (uint8_t idx)
 

Static Public Attributes

static constexpr bool DUAL_TARIFF { true }
 
static constexpr uint8_t LOAD_COUNT { 2 }
 
static constexpr uint8_t PHASE_COUNT { PHASES }
 
static constexpr uint8_t RELAY_COUNT { 1 }
 
static constexpr bool RELAY_DIVERSION { true }
 
static constexpr uint8_t TEMP_COUNT { 2 }
 

Detailed Description

template<uint8_t PHASES>
struct TestSource< PHASES >

A data source of writeFrameStep(): 2 loads, 1 relay, 2 temperature sensors (the 2nd invalid).

A data source of writeFrameStep(), with a feature set of the firmware.

Definition at line 94 of file test_main.cpp.

Member Function Documentation

◆ absenceCount() [1/2]

template<uint8_t PHASES>
static uint16_t TestSource< PHASES >::absenceCount ( )
inlinestatic

Definition at line 135 of file test_main.cpp.

◆ absenceCount() [2/2]

template<uint8_t PHASES>
static uint16_t TestSource< PHASES >::absenceCount ( )
inlinestatic

Definition at line 86 of file test_main.cpp.

◆ loadOnPercent() [1/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::loadOnPercent ( uint8_t idx)
inlinestatic

Definition at line 123 of file test_main.cpp.

◆ loadOnPercent() [2/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::loadOnPercent ( uint8_t idx)
inlinestatic

Definition at line 74 of file test_main.cpp.

◆ lowestSampleSetsPerCycle() [1/2]

template<uint8_t PHASES>
static uint8_t TestSource< PHASES >::lowestSampleSetsPerCycle ( )
inlinestatic

Definition at line 147 of file test_main.cpp.

◆ lowestSampleSetsPerCycle() [2/2]

template<uint8_t PHASES>
static uint8_t TestSource< PHASES >::lowestSampleSetsPerCycle ( )
inlinestatic

Definition at line 98 of file test_main.cpp.

◆ offPeak() [1/2]

template<uint8_t PHASES>
static bool TestSource< PHASES >::offPeak ( )
inlinestatic

Definition at line 139 of file test_main.cpp.

◆ offPeak() [2/2]

template<uint8_t PHASES>
static bool TestSource< PHASES >::offPeak ( )
inlinestatic

Definition at line 90 of file test_main.cpp.

◆ phasePower() [1/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::phasePower ( uint8_t idx)
inlinestatic

Definition at line 107 of file test_main.cpp.

◆ phasePower() [2/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::phasePower ( uint8_t idx)
inlinestatic

Definition at line 58 of file test_main.cpp.

◆ phaseVoltage() [1/2]

template<uint8_t PHASES>
static uint16_t TestSource< PHASES >::phaseVoltage ( uint8_t idx)
inlinestatic

Definition at line 111 of file test_main.cpp.

◆ phaseVoltage() [2/2]

template<uint8_t PHASES>
static uint16_t TestSource< PHASES >::phaseVoltage ( uint8_t idx)
inlinestatic

Definition at line 62 of file test_main.cpp.

◆ power() [1/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::power ( )
inlinestatic

Definition at line 103 of file test_main.cpp.

◆ power() [2/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::power ( )
inlinestatic

Definition at line 54 of file test_main.cpp.

◆ relayAverage() [1/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::relayAverage ( )
inlinestatic

Definition at line 115 of file test_main.cpp.

◆ relayAverage() [2/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::relayAverage ( )
inlinestatic

Definition at line 66 of file test_main.cpp.

◆ relayOn() [1/2]

template<uint8_t PHASES>
static bool TestSource< PHASES >::relayOn ( uint8_t idx)
inlinestatic

Definition at line 70 of file test_main.cpp.

◆ relayOn() [2/2]

template<uint8_t PHASES>
static bool TestSource< PHASES >::relayOn ( uint8_t )
inlinestatic

Definition at line 119 of file test_main.cpp.

◆ sampleSets() [1/2]

template<uint8_t PHASES>
static uint16_t TestSource< PHASES >::sampleSets ( )
inlinestatic

Definition at line 143 of file test_main.cpp.

◆ sampleSets() [2/2]

template<uint8_t PHASES>
static uint16_t TestSource< PHASES >::sampleSets ( )
inlinestatic

Definition at line 94 of file test_main.cpp.

◆ temperature() [1/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::temperature ( uint8_t idx)
inlinestatic

Definition at line 82 of file test_main.cpp.

◆ temperature() [2/2]

template<uint8_t PHASES>
static int16_t TestSource< PHASES >::temperature ( uint8_t )
inlinestatic

Definition at line 131 of file test_main.cpp.

◆ temperatureValid() [1/2]

template<uint8_t PHASES>
static bool TestSource< PHASES >::temperatureValid ( uint8_t idx)
inlinestatic

Definition at line 127 of file test_main.cpp.

◆ temperatureValid() [2/2]

template<uint8_t PHASES>
static bool TestSource< PHASES >::temperatureValid ( uint8_t idx)
inlinestatic

Definition at line 78 of file test_main.cpp.

Member Data Documentation

◆ DUAL_TARIFF

template<uint8_t PHASES>
static constexpr bool TestSource< PHASES >::DUAL_TARIFF { true }
staticconstexpr

Definition at line 101 of file test_main.cpp.

◆ LOAD_COUNT

template<uint8_t PHASES>
static constexpr uint8_t TestSource< PHASES >::LOAD_COUNT { 2 }
staticconstexpr

Definition at line 99 of file test_main.cpp.

◆ PHASE_COUNT

template<uint8_t PHASES>
static constexpr uint8_t TestSource< PHASES >::PHASE_COUNT { PHASES }
staticconstexpr

Definition at line 96 of file test_main.cpp.

◆ RELAY_COUNT

template<uint8_t PHASES>
static constexpr uint8_t TestSource< PHASES >::RELAY_COUNT { 1 }
staticconstexpr

Definition at line 98 of file test_main.cpp.

◆ RELAY_DIVERSION

template<uint8_t PHASES>
static constexpr bool TestSource< PHASES >::RELAY_DIVERSION { true }
staticconstexpr

Definition at line 97 of file test_main.cpp.

◆ TEMP_COUNT

template<uint8_t PHASES>
static constexpr uint8_t TestSource< PHASES >::TEMP_COUNT { 2 }
staticconstexpr

Definition at line 100 of file test_main.cpp.


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