1-phase PV router
Loading...
Searching...
No Matches
Shared Namespace Reference

Variables

volatile uint16_t absenceOfDivertedEnergyCountInSeconds { 0 }
 
volatile bool b_datalogEventPending { false }
 
volatile bool b_diversionEnabled { true }
 
volatile bool b_newCycle { false }
 
volatile bool b_overrideLoadOn [NO_OF_DUMPLOADS] {}
 
volatile bool b_reOrderLoads { false }
 
volatile uint16_t copyOf_countLoadON [NO_OF_DUMPLOADS]
 
volatile uint16_t copyOf_divertedEnergyTotal_Wh
 
volatile uint16_t copyOf_divertedEnergyTotal_Wh_forDL
 
volatile int32_t copyOf_energyInBucket_long
 
volatile uint8_t copyOf_lowestNoOfSampleSetsPerMainsCycle
 
volatile uint16_t copyOf_sampleSetsDuringThisDatalogPeriod
 
volatile int32_t copyOf_sum_Vsquared
 
volatile int32_t copyOf_sumP_diverted_overDL_Period
 
volatile int32_t copyOf_sumP_grid_overDL_Period
 
volatile bool EDD_isActive { false }
 

Variable Documentation

◆ absenceOfDivertedEnergyCountInSeconds

volatile uint16_t Shared::absenceOfDivertedEnergyCountInSeconds { 0 }
inline

number of seconds without diverted energy

Definition at line 17 of file shared_var.h.

Referenced by printForJSON(), printForSerialText(), proceedLoadPrioritiesAndOverriding(), processLatestContribution(), and sendTelemetryData().

◆ b_datalogEventPending

volatile bool Shared::b_datalogEventPending { false }
inline

async trigger to signal datalog is available

Definition at line 10 of file shared_var.h.

Referenced by loop(), and processDataLogging().

◆ b_diversionEnabled

volatile bool Shared::b_diversionEnabled { true }
inline

async trigger to stop diversion

Definition at line 14 of file shared_var.h.

Referenced by checkDiversionOnOff(), loop(), processDivertedCurrentRawSample(), and updatePhysicalLoadStates().

◆ b_newCycle

volatile bool Shared::b_newCycle { false }
inline

async trigger to signal start of new main cycle based on first phase

Definition at line 11 of file shared_var.h.

Referenced by loop(), and processLatestContribution().

◆ b_overrideLoadOn

volatile bool Shared::b_overrideLoadOn[NO_OF_DUMPLOADS] {}
inline

◆ b_reOrderLoads

volatile bool Shared::b_reOrderLoads { false }
inline

async trigger for loads re-ordering

Definition at line 13 of file shared_var.h.

Referenced by proceedRotation(), and updatePhysicalLoadStates().

◆ copyOf_countLoadON

volatile uint16_t Shared::copyOf_countLoadON[NO_OF_DUMPLOADS]
inline

copy of number of cycle the load was ON (over 1 datalog period)

Definition at line 30 of file shared_var.h.

Referenced by processDataLogging().

◆ copyOf_divertedEnergyTotal_Wh

volatile uint16_t Shared::copyOf_divertedEnergyTotal_Wh
inline

copy of WattHour register of 63K range

Definition at line 24 of file shared_var.h.

Referenced by loop(), and processLatestContribution().

◆ copyOf_divertedEnergyTotal_Wh_forDL

volatile uint16_t Shared::copyOf_divertedEnergyTotal_Wh_forDL
inline

copy of WattHour register of 63K range

Definition at line 25 of file shared_var.h.

Referenced by loop(), printForJSON(), printForSerialText(), processDataLogging(), and sendTelemetryData().

◆ copyOf_energyInBucket_long

volatile int32_t Shared::copyOf_energyInBucket_long
inline

copy of main energy bucket (over all phases)

Definition at line 27 of file shared_var.h.

Referenced by printForSerialText(), and processDataLogging().

◆ copyOf_lowestNoOfSampleSetsPerMainsCycle

volatile uint8_t Shared::copyOf_lowestNoOfSampleSetsPerMainsCycle
inline

Definition at line 28 of file shared_var.h.

Referenced by printForSerialText(), processDataLogging(), and sendTelemetryData().

◆ copyOf_sampleSetsDuringThisDatalogPeriod

volatile uint16_t Shared::copyOf_sampleSetsDuringThisDatalogPeriod
inline

copy of for counting the sample sets during each datalogging period

Definition at line 29 of file shared_var.h.

Referenced by printForSerialText(), processCalculationsForLogging(), processDataLogging(), and sendTelemetryData().

◆ copyOf_sum_Vsquared

volatile int32_t Shared::copyOf_sum_Vsquared
inline

copy of for summation of V^2 values during datalog period

Definition at line 26 of file shared_var.h.

Referenced by processCalculationsForLogging(), and processDataLogging().

◆ copyOf_sumP_diverted_overDL_Period

volatile int32_t Shared::copyOf_sumP_diverted_overDL_Period
inline

copy of cumulative diverted power

Definition at line 23 of file shared_var.h.

Referenced by processCalculationsForLogging(), and processDataLogging().

◆ copyOf_sumP_grid_overDL_Period

volatile int32_t Shared::copyOf_sumP_grid_overDL_Period
inline

copy of cumulative grid power

Definition at line 22 of file shared_var.h.

Referenced by processCalculationsForLogging(), and processDataLogging().

◆ EDD_isActive

volatile bool Shared::EDD_isActive { false }
inline

energy diversion detection

Definition at line 16 of file shared_var.h.

Referenced by loop(), processLatestContribution(), and processRawSamples().