|
| constexpr | TargetMap (const uint8_t(&loadMap)[NL], const RelayEngine< NR, D > &relays, const bool relayDiversion) |
| |
| constexpr uint32_t | groupMask (const uint8_t code) const |
| | The pins of an ALL_...() code: local pins in the lower 16 bits, remote loads from bit 16.
|
| |
| template<uint8_t MaxPins> |
| constexpr uint16_t | localBitmask (const PinList< MaxPins > &targets) const |
| | The local loads and relays that targets force, as a bitmask of pins.
|
| |
| constexpr uint8_t | pinOf (const uint8_t code) const |
| | The pin that a single code stands for (any code but ALL_...()).
|
| |
| template<uint8_t MaxPins> |
| constexpr uint8_t | remoteBitmask (const PinList< MaxPins > &targets) const |
| | The remote loads that targets force, as a bitmask (bit 0 = remote load 0).
|
| |
template<uint8_t NL, uint8_t NR, uint8_t D>
class TargetMap< NL, NR, D >
What the target codes of config.h stand for, once the load map and the relays are known.
LOAD(n) is the override pin of load n (overridePinOf()), LOCAL_LOAD(n) its local pin, RELAY(n) the pin of relay n, and ALL_...() every pin of their kind. Out of range, or RELAY() without relay diversion, a code gives pin 0, which no load or relay uses: validation.h reports it. Any other value is a pin already.
- Template Parameters
-
| NL | Number of loads in the load map. |
| NR | Number of relays. |
| D | Duration of the sliding average of the relays (unused here). |
Definition at line 137 of file utils_override.h.
template<uint8_t NL, uint8_t NR, uint8_t D>
template<uint8_t MaxPins>
| uint16_t TargetMap< NL, NR, D >::localBitmask |
( |
const PinList< MaxPins > & | targets | ) |
const |
|
inlineconstexpr |
The local loads and relays that targets force, as a bitmask of pins.
Definition at line 199 of file utils_override.h.
template<uint8_t NL, uint8_t NR, uint8_t D>
template<uint8_t MaxPins>
| uint8_t TargetMap< NL, NR, D >::remoteBitmask |
( |
const PinList< MaxPins > & | targets | ) |
const |
|
inlineconstexpr |
The remote loads that targets force, as a bitmask (bit 0 = remote load 0).
Definition at line 212 of file utils_override.h.