|
| constexpr | RotationGroups (const PinList< MaxPins > &g0, const PinList< MaxPins > &g1={}, const PinList< MaxPins > &g2={}, const PinList< MaxPins > &g3={}, const PinList< MaxPins > &g4={}, const PinList< MaxPins > &g5={}, const PinList< MaxPins > &g6={}, const PinList< MaxPins > &g7={}, const PinList< MaxPins > &g8={}, const PinList< MaxPins > &g9={}) |
| | The groups, one list of targets each.
|
| |
| constexpr const PinList< MaxPins > & | getGroup (const uint8_t index) const |
| | The targets of group index, as codes.
|
| |
| constexpr uint8_t | size () const |
| | Number of groups.
|
| |
template<uint8_t N, uint8_t MaxPins = 16>
class RotationGroups< N, MaxPins >
The rotation groups, as in config.h: the loads that take turns at the top of the priority list, one group per appliance (the elements of a 3-phase water heater).
Each group is a list of target codes, as for the override pins: LOAD(n), LOCAL_LOAD(n), REMOTE_LOAD(n), ALL_LOCAL_LOADS()... The codes stay codes here; Rotation::Table (rotation_groups.h) holds the priority places each group rotates in. One constructor takes up to 10 groups: each group needs at least 2 loads, and the router drives at most 12 local and 8 remote loads, so no valid config needs more.
- Template Parameters
-
| N | Number of groups. |
| MaxPins | Maximum number of targets per group. |
Definition at line 537 of file config_types.h.