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