LSH-Core
A robust C++ framework for Arduino-based home automation nodes
Loading...
Searching...
No Matches
indicator_manager.hpp
Go to the documentation of this file.
1
21#ifndef LSHCORE_DEVICE_INDICATOR_MANAGER_HPP
22#define LSHCORE_DEVICE_INDICATOR_MANAGER_HPP
23
24#include <stdint.h>
25
26#include <etl/array.h>
27
29
30class Indicator;
31
36namespace Indicators
37{
38 extern uint8_t totalIndicators;
39 extern etl::array<Indicator *, CONFIG_MAX_INDICATORS> indicators;
40
41 void addIndicator(Indicator *indicator); // Add one indicator to indicators vector and activate it
42 void indicatorsCheck(); // Performs an indicator check for every indicator set
43 void finalizeSetup(); // Resize vectors of all indicators to the actual needed size
44} // namespace Indicators
45
46#endif // LSHCORE_DEVICE_INDICATOR_MANAGER_HPP
Represents a state indicator for one or more attached actuators, indicators are normally connected to...
Definition indicator.hpp:35
Forward declaration.
Definition indicator_manager.cpp:32
void indicatorsCheck()
Performs a indicator check for indicator set.
Definition indicator_manager.cpp:68
uint8_t totalIndicators
Device real total indicators.
Definition indicator_manager.cpp:33
void finalizeSetup()
Resize vectors of all indicators to the actual needed size.
Definition indicator_manager.cpp:80
void addIndicator(Indicator *const indicator)
Adds an indicator to the system.
Definition indicator_manager.cpp:44
etl::array< Indicator *, CONFIG_MAX_INDICATORS > indicators
Device indicators.
Definition indicator_manager.cpp:34
Internal bridge that imports user-defined macros into the library's scope.