LSH-Core
A robust C++ framework for Arduino-based home automation nodes
Loading...
Searching...
No Matches
actuator_manager.hpp File Reference

Declares the manager for the global collection of Actuator objects. More...

#include <etl/array.h>
#include <etl/map.h>
#include <etl/vector.h>
#include <stdint.h>
#include "internal/user_config_bridge.hpp"
Include dependency graph for actuator_manager.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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.
 

Detailed Description

Declares the manager for the global collection of Actuator objects.

Author
Jacopo Labardi (labodj)

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.