|
3-phase PV router
|
Config-dependent helper functions for override pin configuration. More...
#include "utils_override.h"

Go to the source code of this file.
Functions | |
| constexpr uint16_t | ALL_LOADS () |
| Returns a bitmask representing all load pins. | |
| constexpr uint16_t | ALL_LOADS_AND_RELAYS () |
| Returns a bitmask representing all loads and all relays. | |
| constexpr uint16_t | ALL_RELAYS () |
| Returns a bitmask representing all relay 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. | |
Config-dependent helper functions for override pin configuration.
This file provides convenience functions like LOAD(), RELAY(), ALL_LOADS(), etc. that depend on configuration values defined in config.h.
IMPORTANT: This file must be included AFTER physicalLoadPin[], relays, NO_OF_DUMPLOADS, and RELAY_DIVERSION are defined in config.h.
Definition in file utils_override_helpers.h.
|
constexpr |
Returns a bitmask representing all load pins.
Definition at line 47 of file utils_override_helpers.h.


|
constexpr |
Returns a bitmask representing all loads and all relays.
Definition at line 82 of file utils_override_helpers.h.

|
constexpr |
Returns a bitmask representing all relay pins.
Definition at line 61 of file utils_override_helpers.h.


|
constexpr |
Returns the pin number for a given load index at compile time.
| loadNum | The load index (0-based). |
Definition at line 27 of file utils_override_helpers.h.
|
constexpr |
Returns the pin number for a given relay index at compile time.
| relayNum | The relay index (0-based). |
Definition at line 38 of file utils_override_helpers.h.