3-phase PV router
|
Functions and classes responsible for system setup and configuration. More...
Functions | |
constexpr uint16_t | getInputPins () |
Retrieves the input pins configuration. | |
constexpr uint16_t | getOutputPins () |
Retrieves the output pins configuration. | |
template<size_t N> | |
constexpr void | initializeArray (int32_t(&array)[N], int32_t value) |
Initializes all elements of a given array to a specified value. | |
void | initializeProcessing () |
Initializes the processing engine, including ports, load states, and ADC setup. | |
void | printConfiguration () |
Print the configuration during startup. | |
void | setup () |
Called once during startup. | |
Functions and classes responsible for system setup and configuration.
This group includes functions and classes that handle the initialization of hardware components, system parameters, and other configurations required for the proper operation of the system.
|
constexpr |
Retrieves the input pins configuration.
This function determines which pins are configured as input pins based on the current hardware setup. It ensures that no pin is configured multiple times and handles special cases like the dual tariff, diversion, rotation, and force pins.
constexpr
and can be evaluated at compile time. Definition at line 177 of file processing.cpp.
|
constexpr |
Retrieves the output pins configuration.
This function determines which pins are configured as output pins based on the current hardware setup. It ensures that no pin is configured multiple times and handles special cases like the watchdog pin.
constexpr
and can be evaluated at compile time. Definition at line 126 of file processing.cpp.
|
constexpr |
Initializes all elements of a given array to a specified value.
This function is a compile-time constant expression (constexpr
) that allows initializing arrays of any size with a specific value. It is particularly useful in embedded systems where predictable initialization is required.
N | The size of the array (deduced automatically). |
array | A reference to the array to be initialized. |
value | The value to assign to each element of the array. |
Definition at line 104 of file processing.cpp.
void initializeProcessing | ( | ) |
Initializes the processing engine, including ports, load states, and ADC setup.
This function performs the following tasks:
Definition at line 229 of file processing.cpp.
|
inline |
Print the configuration during startup.
This function outputs the system configuration to the Serial output during startup. It includes details about the sketch, build information, electrical settings, and enabled features.
Definition at line 46 of file utils.h.
void setup | ( | ) |
Called once during startup.
This function initializes the system, configures pins, and prints system configuration to the Serial Monitor. It also initializes optional features like temperature sensing and load priorities.
Definition at line 295 of file main.cpp.