|
3-phase PV router
|
Manages override pins and their associated bitmasks for forced operation. More...
#include <utils_override.h>

Classes | |
| struct | Entry |
| Internal structure representing a pin and its associated bitmasks. More... | |
Public Member Functions | |
| constexpr | OverrideTable (const KeyIndexPair< MaxPins >(&pairs)[N]) |
| Constructor. Initializes the override pin mapping from pin-index pairs. | |
| template<typename Map> | |
| constexpr | OverrideTable (const OverridePins< N, MaxPins > &pins, const Map &map) |
Constructor. The override pins of config.h, their codes turned into pins by map. | |
| constexpr uint16_t | findLocalBitmask (uint8_t pin) const |
| Finds the local bitmask associated with a given pin number. | |
| constexpr uint8_t | findRemoteBitmask (uint8_t pin) const |
| Finds the remote bitmask associated with a given pin number. | |
| constexpr uint16_t | getLocalBitmask (uint8_t index) const |
| Returns the local bitmask for the specified entry index. | |
| constexpr uint8_t | getPin (uint8_t index) const |
| Returns the pin number at the specified entry index. | |
| constexpr uint8_t | getRemoteBitmask (uint8_t index) const |
| Returns the remote bitmask for the specified entry index. | |
| constexpr uint8_t | size () const |
| Returns the number of override pin entries. | |
Private Attributes | |
| const Entry | entries_ [N] |
Manages override pins and their associated bitmasks for forced operation.
This class provides compile-time mapping between override pins and the loads/relays they control. Each pin can be associated with a set of pins (loads/relays), represented as separate bitmasks for local loads/relays and remote loads.
| N | Number of pin-index pairs (entries). |
| MaxPins | Maximum number of pins supported (loads + relays). Default is 16. |
Definition at line 255 of file utils_override.h.
|
inlineconstexpr |
Constructor. Initializes the override pin mapping from pin-index pairs.
| pairs | Array of pin-index pairs, each specifying a pin and its associated pins. |
Definition at line 284 of file utils_override.h.
|
inlineconstexpr |
Constructor. The override pins of config.h, their codes turned into pins by map.
Definition at line 305 of file utils_override.h.

|
inlineconstexpr |
Finds the local bitmask associated with a given pin number.
| pin | Pin value to search for. |
Definition at line 363 of file utils_override.h.
|
inlineconstexpr |
Finds the remote bitmask associated with a given pin number.
| pin | Pin value to search for. |
Definition at line 380 of file utils_override.h.
|
inlineconstexpr |
Returns the local bitmask for the specified entry index.
| index | Index in the entries array. |
Definition at line 343 of file utils_override.h.
|
inlineconstexpr |
Returns the pin number at the specified entry index.
| index | Index in the entries array. |
Definition at line 333 of file utils_override.h.
|
inlineconstexpr |
Returns the remote bitmask for the specified entry index.
| index | Index in the entries array. |
Definition at line 353 of file utils_override.h.
|
inlineconstexpr |
Returns the number of override pin entries.
Definition at line 323 of file utils_override.h.
|
private |
Array of entries for all pin-index pairs.
Definition at line 276 of file utils_override.h.