3-phase PV router
|
Wrapper for a list of pins, constructible from variadic arguments. More...
#include <utils_override.h>
Public Member Functions | |
constexpr | PinList () |
Default constructor. Initializes with zero pins. | |
template<typename... Args> | |
constexpr | PinList (Args... args) |
Variadic constructor. Initializes with provided pins. | |
constexpr | PinList (uint16_t bitmask) |
Constructor from bitmask. Sets pin numbers from bits set in bitmask. | |
constexpr uint16_t | toBitmask () const |
Converts the pin list to a bitmask. | |
Public Attributes | |
uint8_t | count |
uint8_t | pins [MaxPins] |
Wrapper for a list of pins, constructible from variadic arguments.
MaxPins | Maximum number of pins supported. |
Definition at line 139 of file utils_override.h.
Default constructor. Initializes with zero pins.
Definition at line 147 of file utils_override.h.
Constructor from bitmask. Sets pin numbers from bits set in bitmask.
bitmask | Bitmask value. |
Definition at line 154 of file utils_override.h.
|
inlineconstexpr |
Variadic constructor. Initializes with provided pins.
args | List of pins. |
Definition at line 171 of file utils_override.h.
|
inlineconstexpr |
Converts the pin list to a bitmask.
Definition at line 178 of file utils_override.h.
uint8_t PinList< MaxPins >::count |
Definition at line 142 of file utils_override.h.
uint8_t PinList< MaxPins >::pins[MaxPins] |
Definition at line 141 of file utils_override.h.