|
3-phase PV router
|
The scheduled boosts: a window and the bitmasks of its targets, for each entry. More...
#include <utils_dualtariff.h>


Classes | |
| struct | Entry |
Public Member Functions | |
| constexpr | BoostSchedule (const BoostEntry< MaxPins >(&boosts)[N]) |
| Builds the boosts from their entries, with plain pins. | |
| template<typename Map> | |
| constexpr | BoostSchedule (const ScheduledBoosts< N, MaxPins > &boosts, const Map &map) |
Builds the boosts of config.h, their codes turned into pins by map (a TargetMap). | |
| constexpr uint16_t | getLocalBitmask (uint8_t i) const |
The local bitmask of boost i, or 0 if out of bounds. | |
| constexpr uint8_t | getRemoteBitmask (uint8_t i) const |
The remote bitmask of boost i, or 0 if out of bounds. | |
| constexpr BoostWindow | getWindow (uint8_t i) const |
The window of boost i, or a window of length 0 if out of bounds. | |
| constexpr uint8_t | size () const |
| The number of boosts. | |
Private Attributes | |
| Entry | entries_ [N] {} |
The scheduled boosts: a window and the bitmasks of its targets, for each entry.
Same accessors as OverrideTable, so that a target check takes either. Built from the ScheduledBoosts of config.h and a TargetMap (utils_override.h), or from plain pins.
| N | number of boosts |
| MaxPins | maximum number of pins (loads + relays) of a target list |
Definition at line 32 of file utils_dualtariff.h.
|
inlineconstexpr |
Builds the boosts from their entries, with plain pins.
Definition at line 46 of file utils_dualtariff.h.
|
inlineconstexpr |
Builds the boosts of config.h, their codes turned into pins by map (a TargetMap).
Definition at line 56 of file utils_dualtariff.h.

|
inlineconstexpr |
The local bitmask of boost i, or 0 if out of bounds.
Definition at line 77 of file utils_dualtariff.h.

|
inlineconstexpr |
The remote bitmask of boost i, or 0 if out of bounds.
Definition at line 83 of file utils_dualtariff.h.

|
inlineconstexpr |
The window of boost i, or a window of length 0 if out of bounds.
Definition at line 71 of file utils_dualtariff.h.


|
inlineconstexpr |
The number of boosts.
Definition at line 65 of file utils_dualtariff.h.
|
private |
Definition at line 42 of file utils_dualtariff.h.