3-phase PV router
Loading...
Searching...
No Matches
processing.h File Reference

Public functions/variables of processing engine. More...

#include "config_derived.h"
Include dependency graph for processing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void confirmPolarity (uint8_t phase)
 Confirms the polarity of the current voltage sample for a specific phase.
 
void initializeProcessing ()
 Initializes the processing engine, including ports, load states, and ADC setup.
 
void printParamsForSelectedOutputMode ()
 Print the settings used for the selected output mode.
 
void processCurrentRawSample (const uint8_t phase, const uint16_t rawSample)
 Processes the current raw sample for the specified phase.
 
void processDataLogging ()
 Process data logging at the end of each logging period.
 
void processLatestContribution (uint8_t phase)
 Process the latest contribution after each phase-specific new cycle.
 
void processMinusHalfCycle (uint8_t phase)
 Processes the start of a new negative half cycle for the specified phase.
 
void processPlusHalfCycle (uint8_t phase)
 Process the start of a new positive half cycle for the specified phase.
 
void processPolarity (uint8_t phase, uint16_t rawSample)
 Processes the polarity of the current voltage sample for a specific phase.
 
void processRawSamples (const uint8_t phase)
 Processes raw voltage and current samples for the specified phase.
 
void processStartNewCycle ()
 Processes the start of a new mains cycle on phase 0.
 
void processStartUp (uint8_t phase)
 Processes the startup period for the router.
 
void processVoltage (uint8_t phase)
 Processes the current voltage sample for the specified phase.
 
void processVoltageRawSample (const uint8_t phase, const uint16_t rawSample)
 Processes the current voltage raw sample for the specified phase.
 
void updatePhysicalLoadStates ()
 Updates the physical load states based on logical load priorities and states.
 
void updatePortsStates ()
 Updates the control ports for each of the physical loads.
 

Variables

constexpr uint16_t initialDelay { 3000 }
 
uint8_t loadPrioritiesAndState [NO_OF_DUMPLOADS]
 
constexpr uint8_t PERSISTENCE_FOR_POLARITY_CHANGE { 1 }
 
constexpr uint16_t startUpPeriod { 3000 }
 
PayloadTx_struct< NO_OF_PHASES, TEMP_SENSOR_PRESENT ? tempSensors.size() :0 > tx_data
 

Detailed Description

Public functions/variables of processing engine.

Author
Frédéric Metrich (frede.nosp@m.ric..nosp@m.metri.nosp@m.ch@l.nosp@m.ive.f.nosp@m.r)
Version
0.1
Date
2026-11-24

Definition in file processing.h.

Variable Documentation

◆ initialDelay

uint16_t initialDelay { 3000 }
inlineconstexpr

in milli-seconds, to allow time to open the Serial monitor

Definition at line 22 of file processing.h.

◆ loadPrioritiesAndState

uint8_t loadPrioritiesAndState[NO_OF_DUMPLOADS]
inline

load priorities

Definition at line 18 of file processing.h.

◆ PERSISTENCE_FOR_POLARITY_CHANGE

uint8_t PERSISTENCE_FOR_POLARITY_CHANGE { 1 }
inlineconstexpr

allows polarity changes to be confirmed

Definition at line 20 of file processing.h.

◆ startUpPeriod

uint16_t startUpPeriod { 3000 }
inlineconstexpr

in milli-seconds, to allow LP filter to settle

Definition at line 23 of file processing.h.

◆ tx_data

logging data

Definition at line 26 of file processing.h.