30#if defined(__DOXYGEN__)
49inline
void processStartUp(uint8_t phase) __attribute__((always_inline));
51inline
void processVoltageRawSample(const uint8_t phase, const uint16_t rawSample) __attribute__((always_inline));
52inline
void processCurrentRawSample(const uint8_t phase, const uint16_t rawSample) __attribute__((always_inline));
56inline
void processVoltage(uint8_t phase) __attribute__((always_inline));
57inline
void processPolarity(uint8_t phase, uint16_t rawSample) __attribute__((always_inline));
58inline
void confirmPolarity(uint8_t phase) __attribute__((always_inline));
container for datalogging
constexpr uint8_t NO_OF_DUMPLOADS
constexpr bool TEMP_SENSOR_PRESENT
The configuration as the firmware uses it: the settings, and what is built from them.
constexpr TempSensors tempSensors
constexpr uint8_t NO_OF_PHASES
void printParamsForSelectedOutputMode()
Print the settings used for the selected output mode.
void initializeProcessing()
Initializes the processing engine, including ports, load states, and ADC setup.
void updatePhysicalLoadStates()
Updates the physical load states based on logical load priorities and states.
void processLatestContribution(uint8_t phase)
Process the latest contribution after each phase-specific new cycle.
void updatePortsStates()
Updates the control ports for each of the physical loads.
void processStartUp(uint8_t phase)
Processes the startup period for the router.
void processStartNewCycle()
Processes the start of a new mains cycle on phase 0.
void processMinusHalfCycle(uint8_t phase)
Processes the start of a new negative half cycle for the specified phase.
void processRawSamples(const uint8_t phase)
Processes raw voltage and current samples 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 processPlusHalfCycle(uint8_t phase)
Process the start of a new positive half cycle for the specified phase.
void processDataLogging()
Process data logging at the end of each logging period.
void processCurrentRawSample(const uint8_t phase, const uint16_t rawSample)
Processes the current raw 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 confirmPolarity(uint8_t phase)
Confirms the polarity of the current voltage sample for a specific phase.
void processVoltage(uint8_t phase)
Processes the current voltage sample for the specified phase.
constexpr uint16_t startUpPeriod
constexpr uint8_t PERSISTENCE_FOR_POLARITY_CHANGE
uint8_t loadPrioritiesAndState[NO_OF_DUMPLOADS]
PayloadTx_struct< NO_OF_PHASES, TEMP_SENSOR_PRESENT ? tempSensors.size() :0 > tx_data
constexpr uint16_t initialDelay