|
3-phase PV router
|
Classes | |
| struct | Bucket |
| The fixed levels of the energy bucket, in bucket units. More... | |
| struct | Switching |
| The switching decision, once per mains cycle, and its state. More... | |
Functions | |
| template<uint8_t N> | |
| uint8_t | nextToAdd (const uint8_t(&priorities)[N]) |
| The next logical load to switch ON: the first one OFF, in priority order. | |
| template<uint8_t N> | |
| uint8_t | nextToRemove (const uint8_t(&priorities)[N]) |
| The next logical load to switch OFF: the last one ON, in priority order. | |
| template<uint8_t N> | |
| void | rotate (uint8_t(&priorities)[N]) |
| Rotates the priorities by one: the last load becomes the first, the others move down one place. Each load keeps its state. | |
| template<bool CALIBRATION, uint8_t N, typename IsOverridden> | |
| void | toPhysical (const uint8_t(&priorities)[N], LoadStates(&physical)[N], const bool diversionEnabled, IsOverridden isOverridden) |
| Maps the logical load states to the physical ones. | |
|
inline |
The next logical load to switch ON: the first one OFF, in priority order.
Definition at line 56 of file load_priorities.h.

|
inline |
The next logical load to switch OFF: the last one ON, in priority order.
Definition at line 75 of file load_priorities.h.

|
inline |
Rotates the priorities by one: the last load becomes the first, the others move down one place. Each load keeps its state.
Definition at line 97 of file load_priorities.h.

|
inline |
Maps the logical load states to the physical ones.
| CALIBRATION | every load stays OFF (calibration mode) |
| isOverridden | callable, physical load number -> true if its override is active |
priorities are 0..N-1, each once: they index physical unchecked. validation.h checks loadPrioritiesAtStartup at compile time (check_load_priorities()), and rotate() only reorders them. Definition at line 123 of file load_priorities.h.
