|
3-phase PV router
|
Some utility functions for dual tariff feature. More...


Go to the source code of this file.
Classes | |
| struct | DualTariff::Boost |
| A boost resolved for a given off-peak duration: its window in ms and its target masks. More... | |
| class | BoostSchedule< N, MaxPins > |
| The scheduled boosts: a window and the bitmasks of its targets, for each entry. More... | |
| class | BoostSchedule< 0, MaxPins > |
| No boost at all. More... | |
| struct | BoostSchedule< N, MaxPins >::Entry |
Namespaces | |
| namespace | DualTariff |
| The windows of the scheduled boosts, in milliseconds from the start of the off-peak period. | |
Functions | |
| BoostSchedule () -> BoostSchedule< 0 > | |
| Deduction guide: no argument, no boost. | |
| template<uint8_t MaxPins, uint8_t N> | |
| BoostSchedule (const BoostEntry< MaxPins >(&)[N]) -> BoostSchedule< N, MaxPins > | |
| Deduction guide, as for OverrideTable. | |
| template<uint8_t N, uint8_t MaxPins, typename Map> | |
| BoostSchedule (const ScheduledBoosts< N, MaxPins > &, const Map &) -> BoostSchedule< N, MaxPins > | |
| Deduction guide: from the boosts of config.h. | |
| constexpr bool | DualTariff::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 | DualTariff::hasLength (const BoostWindow &window) |
| Whether the boost lasts at all: a length of 0 is no boost. | |
| constexpr bool | DualTariff::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 | DualTariff::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 | DualTariff::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 | DualTariff::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 | DualTariff::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 | DualTariff::windowStart (const BoostWindow &window, const uint8_t offPeakHours) |
| The start of the boost window, in ms from the start of the off-peak period. | |
Some utility functions for dual tariff feature.
Definition in file utils_dualtariff.h.
| BoostSchedule | ( | ) | -> BoostSchedule< 0 > |
Deduction guide: no argument, no boost.
| BoostSchedule | ( | const BoostEntry< MaxPins > | (&)[N] | ) | -> BoostSchedule< N, MaxPins > |
Deduction guide, as for OverrideTable.
| BoostSchedule | ( | const ScheduledBoosts< N, MaxPins > & | , |
| const Map & | ) -> BoostSchedule< N, MaxPins > |
Deduction guide: from the boosts of config.h.