17#ifndef UTILS_OVERRIDE_HELPERS_H
18#define UTILS_OVERRIDE_HELPERS_H
27constexpr uint8_t
LOAD(uint8_t loadNum)
38constexpr uint8_t
RELAY(uint8_t relayNum)
40 return relays.get_relay(relayNum).get_pin();
66 for (uint8_t
i = 0;
i <
relays.size(); ++
i)
constexpr bool RELAY_DIVERSION
constexpr RelayEngine relays
constexpr uint8_t physicalLoadPin[NO_OF_DUMPLOADS]
constexpr uint8_t NO_OF_DUMPLOADS
constexpr void bit_set(T &_dest, const uint8_t bit)
Set the specified bit to 1.
Compile-time utilities for managing override pins and index-to-bitmask mapping.
constexpr uint16_t ALL_RELAYS()
Returns a bitmask representing all relay pins.
constexpr uint16_t ALL_LOADS()
Returns a bitmask representing all load pins.
constexpr uint8_t LOAD(uint8_t loadNum)
Returns the pin number for a given load index at compile time.
constexpr uint8_t RELAY(uint8_t relayNum)
Returns the pin number for a given relay index at compile time.
constexpr uint16_t ALL_LOADS_AND_RELAYS()
Returns a bitmask representing all loads and all relays.