|
LSH-Core
A robust C++ framework for Arduino-based home automation nodes
|
Implements the logic for managing and operating on all system Actuators. More...
#include "device/actuator_manager.hpp"#include "internal/user_config_bridge.hpp"#include "peripherals/output/actuator.hpp"#include "util/constants/wrong_config_strings.hpp"#include "util/debug/debug.hpp"#include "util/reset.hpp"
Namespaces | |
| namespace | Actuators |
| Forward declaration. | |
Functions | |
| void | Actuators::addActuator (Actuator *const actuator) |
| Adds an actuator to the system. | |
| auto | Actuators::getActuator (uint8_t actuatorId) -> Actuator * |
| Get a single actuator. | |
| auto | Actuators::getIndex (uint8_t actuatorId) -> uint8_t |
| Get a single actuator index (in device vector of actuators). | |
| auto | Actuators::actuatorExists (uint8_t actuatorId) -> bool |
| Get if the actuator actually exists. | |
| auto | Actuators::actuatorsAutoOffTimersCheck () -> bool |
| Performs an auto-off timers check for actuators. | |
| auto | Actuators::turnOffAllActuators () -> bool |
| Turns off all actuators. | |
| auto | Actuators::turnOffUnprotectedActuators () -> bool |
| Turns off all unprotected actuators. | |
| auto | Actuators::setAllActuatorsState (const etl::array< bool, CONFIG_MAX_ACTUATORS > &states) -> bool |
| Set the state for all actuators. | |
| void | Actuators::finalizeSetup () |
| Populates actuatorsWithAutoOffIndexes. | |
Variables | |
| uint8_t | Actuators::totalActuators = 0U |
| Device real total Actuators. | |
| etl::array< Actuator *, CONFIG_MAX_ACTUATORS > | Actuators::actuators {} |
| All device actuators (like relays) | |
| etl::map< uint8_t, uint8_t, CONFIG_MAX_ACTUATORS > | Actuators::actuatorsMap {} |
| Device actuators map (UUID -> actuator index) | |
| etl::vector< uint8_t, CONFIG_MAX_ACTUATORS > | Actuators::actuatorsWithAutoOffIndexes {} |
| Indexes of actuators with auto off functionality active. | |
Implements the logic for managing and operating on all system Actuators.
Copyright 2025 Jacopo Labardi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.