3-phase PV router
Loading...
Searching...
No Matches
BoostSchedule< N, MaxPins > Class Template Reference

The scheduled boosts: a window and the bitmasks of its targets, for each entry. More...

#include <utils_dualtariff.h>

Inheritance diagram for BoostSchedule< N, MaxPins >:
Collaboration diagram for BoostSchedule< N, MaxPins >:

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] {}
 

Detailed Description

template<uint8_t N, uint8_t MaxPins = 16>
class BoostSchedule< N, MaxPins >

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.

Template Parameters
Nnumber of boosts
MaxPinsmaximum number of pins (loads + relays) of a target list

Definition at line 32 of file utils_dualtariff.h.

Constructor & Destructor Documentation

◆ BoostSchedule() [1/2]

template<uint8_t N, uint8_t MaxPins = 16>
BoostSchedule< N, MaxPins >::BoostSchedule ( const BoostEntry< MaxPins >(&) boosts[N])
inlineconstexpr

Builds the boosts from their entries, with plain pins.

Definition at line 46 of file utils_dualtariff.h.

◆ BoostSchedule() [2/2]

template<uint8_t N, uint8_t MaxPins = 16>
template<typename Map>
BoostSchedule< N, MaxPins >::BoostSchedule ( const ScheduledBoosts< N, MaxPins > & boosts,
const Map & map )
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.

Here is the call graph for this function:

Member Function Documentation

◆ getLocalBitmask()

template<uint8_t N, uint8_t MaxPins = 16>
uint16_t BoostSchedule< N, MaxPins >::getLocalBitmask ( uint8_t i) const
inlineconstexpr

The local bitmask of boost i, or 0 if out of bounds.

Definition at line 77 of file utils_dualtariff.h.

Here is the caller graph for this function:

◆ getRemoteBitmask()

template<uint8_t N, uint8_t MaxPins = 16>
uint8_t BoostSchedule< N, MaxPins >::getRemoteBitmask ( uint8_t i) const
inlineconstexpr

The remote bitmask of boost i, or 0 if out of bounds.

Definition at line 83 of file utils_dualtariff.h.

Here is the caller graph for this function:

◆ getWindow()

template<uint8_t N, uint8_t MaxPins = 16>
BoostWindow BoostSchedule< N, MaxPins >::getWindow ( uint8_t i) const
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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ size()

template<uint8_t N, uint8_t MaxPins = 16>
uint8_t BoostSchedule< N, MaxPins >::size ( ) const
inlineconstexpr

The number of boosts.

Definition at line 65 of file utils_dualtariff.h.

Member Data Documentation

◆ entries_

template<uint8_t N, uint8_t MaxPins = 16>
Entry BoostSchedule< N, MaxPins >::entries_[N] {}
private

Definition at line 42 of file utils_dualtariff.h.


The documentation for this class was generated from the following file: