|
3-phase PV router
|
The windows of the scheduled boosts, in milliseconds from the start of the off-peak period. More...
Classes | |
| struct | Boost |
| A boost resolved for a given off-peak duration: its window in ms and its target masks. More... | |
Functions | |
| constexpr bool | endsWithinOffPeak (const BoostWindow &window, const uint8_t offPeakHours) |
| Whether a window with FOR() ends within the off-peak period (its end may be the end of the period): a longer one is a mistake, since the meter would cut it short. | |
| constexpr bool | hasLength (const BoostWindow &window) |
| Whether the boost lasts at all: a length of 0 is no boost. | |
| constexpr bool | inWindow (const uint32_t elapsed, const uint32_t start, const uint32_t end) |
| Whether the boost is in its window. | |
| template<uint8_t N, uint8_t MaxPins> | |
| constexpr Boost | resolve (const BoostSchedule< N, MaxPins > &boosts, const uint8_t i, const uint8_t offPeakHours) |
Boost i of boosts, for an off-peak period of offPeakHours. | |
| constexpr int32_t | startInMinutes (const BoostWindow &window, const uint8_t offPeakHours) |
| The start of the window, in minutes from the start of the off-peak period: negative if before it. | |
| constexpr bool | startsWithinOffPeak (const BoostWindow &window, const uint8_t offPeakHours) |
| Whether the window starts within the off-peak period: otherwise, it would never open. | |
| constexpr uint32_t | windowEnd (const BoostWindow &window, const uint8_t offPeakHours) |
| The end of the boost window (excluded), in ms from the start of the off-peak period. | |
| constexpr uint32_t | windowStart (const BoostWindow &window, const uint8_t offPeakHours) |
| The start of the boost window, in ms from the start of the off-peak period. | |
The windows of the scheduled boosts, in milliseconds from the start of the off-peak period.
|
constexpr |
Whether a window with FOR() ends within the off-peak period (its end may be the end of the period): a longer one is a mistake, since the meter would cut it short.
Definition at line 202 of file utils_dualtariff.h.

|
constexpr |
Whether the boost lasts at all: a length of 0 is no boost.
Definition at line 212 of file utils_dualtariff.h.
|
constexpr |
Whether the boost is in its window.
| elapsed | ms since the start of the off-peak period: millis() - its start, which stays right when millis() wraps around |
Definition at line 148 of file utils_dualtariff.h.
|
constexpr |
Boost i of boosts, for an off-peak period of offPeakHours.
Definition at line 228 of file utils_dualtariff.h.

|
constexpr |
The start of the window, in minutes from the start of the off-peak period: negative if before it.
Definition at line 182 of file utils_dualtariff.h.

|
constexpr |
Whether the window starts within the off-peak period: otherwise, it would never open.
Definition at line 189 of file utils_dualtariff.h.

|
constexpr |
The end of the boost window (excluded), in ms from the start of the off-peak period.
Definition at line 172 of file utils_dualtariff.h.


|
constexpr |
The start of the boost window, in ms from the start of the off-peak period.
A start before the period wraps around to a very large value: the window then never opens. validation.h rejects such a window at compile time, with startsWithinOffPeak().
| offPeakHours | the duration of the off-peak period, in hours (12 at most) |
Definition at line 161 of file utils_dualtariff.h.
