ifw-fcf 7.1.4
Loading...
Searching...
No Matches
lampConfig.hpp
Go to the documentation of this file.
1
8#ifndef FCF_DEVMGR_DEVICE_LAMP_CONFIG_HPP
9#define FCF_DEVMGR_DEVICE_LAMP_CONFIG_HPP
10
11#include <string>
12
13#include <yaml-cpp/yaml.h>
14
15#include <ifw/core/utils/bat/logger.hpp>
20
21
22namespace ifw::fcf::devmgr::lamp {
23
24 constexpr auto LOGGER_NAME = "lamp";
25 // Constants for internal mapping
26 constexpr auto CI_ACTIVE_LOW_FAULT = "low_fault";
27 constexpr auto CI_IGNORE_FAULT = "ignore_fault";
28 constexpr auto CI_ANALOG_RANGE = "analog_range";
29 constexpr auto CI_COOLDDOWN = "cooldown";
30 constexpr auto CI_WARMUP = "warmup";
31
32 // Specifics lamp status values
33 constexpr auto CI_STAT_INTENSITY = "intensity";
34 constexpr auto CI_STAT_TIME_LEFT = "time_left";
35 constexpr auto CI_STAT_ON_ANALOG = "on_analog";
36 constexpr auto CI_STAT_ON_DIGITAL = "on_digital";
37 constexpr auto CI_STAT_ANALOG_FEEDBACK = "analog_feedback";
38
39 // Specific constant values for lamp device state/substate
40 constexpr int SUBSTATE_OP_COOLING = 208;
41 constexpr int SUBSTATE_OP_WARMING = 211;
42
43 constexpr auto SUBSTATE_OP_COOLING_STR = "Cooling down";
44 constexpr auto SUBSTATE_OP_WARMING_STR = "Warming up";
45
46
62
63
64
65} // fcf::devmgr::lamp
66
67
68#endif //FCF_DEVMGR_DEVICE_LAMP_CONFIG_H
constexpr int SUBSTATE_READY_OFF
Definition actuatorConfig.hpp:42
constexpr int SUBSTATE_READY_ON
Definition actuatorConfig.hpp:43
constexpr auto SUBSTATE_READY_OFF_STR
Definition actuatorConfig.hpp:54
constexpr int SUBSTATE_OP_OFF
Definition actuatorConfig.hpp:48
constexpr auto SUBSTATE_OP_OFF_STR
Definition actuatorConfig.hpp:58
constexpr int SUBSTATE_OP_SWITCHING_ON
Definition actuatorConfig.hpp:51
constexpr auto SUBSTATE_OP_ON_STR
Definition actuatorConfig.hpp:60
constexpr int SUBSTATE_OP_ON
Definition actuatorConfig.hpp:50
constexpr auto SUBSTATE_READY_ON_STR
Definition actuatorConfig.hpp:55
constexpr auto SUBSTATE_OP_SWITCHING_ON_STR
Definition actuatorConfig.hpp:61
constexpr auto SUBSTATE_OP_SWITCHING_OFF_STR
Definition actuatorConfig.hpp:59
constexpr int SUBSTATE_OP_SWITCHING_OFF
Definition actuatorConfig.hpp:49
constexpr int SUBSTATE_ERROR
Definition deviceConfig.hpp:97
constexpr int SUBSTATE_OP_DISABLING
Definition deviceConfig.hpp:104
constexpr auto SUBSTATE_INITIALISING_STR
Definition deviceConfig.hpp:100
constexpr auto SUBSTATE_ERROR_STR
Definition deviceConfig.hpp:102
constexpr int SUBSTATE_INITIALISING
Definition deviceConfig.hpp:96
constexpr auto SUBSTATE_NOTREADY_STR
Definition deviceConfig.hpp:99
constexpr auto SUBSTATE_OP_DISABLING_STR
Definition deviceConfig.hpp:107
constexpr int SUBSTATE_OP_ERROR
Definition deviceConfig.hpp:105
constexpr int SUBSTATE_NOTREADY
Definition deviceConfig.hpp:94
constexpr auto SUBSTATE_OP_ERROR_STR
Definition deviceConfig.hpp:108
Lamp class header file.
Definition lamp.hpp:18
constexpr auto CI_STAT_ON_ANALOG
Definition lampConfig.hpp:35
constexpr auto CI_STAT_ON_DIGITAL
Definition lampConfig.hpp:36
constexpr auto CI_STAT_INTENSITY
Definition lampConfig.hpp:33
constexpr auto LOGGER_NAME
Definition lampConfig.hpp:24
constexpr auto SUBSTATE_OP_COOLING_STR
Definition lampConfig.hpp:43
constexpr int SUBSTATE_OP_COOLING
Definition lampConfig.hpp:40
constexpr auto CI_COOLDDOWN
Definition lampConfig.hpp:29
constexpr int SUBSTATE_OP_WARMING
Definition lampConfig.hpp:41
constexpr auto CI_WARMUP
Definition lampConfig.hpp:30
constexpr auto CI_IGNORE_FAULT
Definition lampConfig.hpp:27
const std::unordered_map< short, std::string > SUBSTATE_MAP
Definition lampConfig.hpp:47
constexpr auto SUBSTATE_OP_WARMING_STR
Definition lampConfig.hpp:44
constexpr auto CI_STAT_TIME_LEFT
Definition lampConfig.hpp:34
constexpr auto CI_ANALOG_RANGE
Definition lampConfig.hpp:28
constexpr auto CI_ACTIVE_LOW_FAULT
Definition lampConfig.hpp:26
constexpr auto CI_STAT_ANALOG_FEEDBACK
Definition lampConfig.hpp:37