ifw-fcf 7.1.4
Loading...
Searching...
No Matches
modulatorConfig.hpp
Go to the documentation of this file.
1
8#ifndef FCF_DEVMGR_DEVICE_MODULATOR_CONFIG_HPP
9#define FCF_DEVMGR_DEVICE_MODULATOR_CONFIG_HPP
10
11#include <string>
12
13#include <yaml-cpp/yaml.h>
14
15#include <ifw/core/utils/bat/logger.hpp>
20
21
23
24 constexpr auto LOGGER_NAME = "modulator";
25 // Constants for internal mapping
26
27 constexpr auto CI_TIMEOUT = "timeout";
28
29
30 constexpr unsigned int DEFAULT_TIMEOUT = 10000;
31
32 // Specific modulator RPC
33 constexpr auto RPC_START_CTRL = "rpcStartCtrl";
34 constexpr auto RPC_STOP_CTRL = "rpcStopCtrl";
35 constexpr auto RPC_SET_TRAJECTORY = "rpcSetTrajectory";
36 constexpr auto RPC_SET_FREQUENCY = "rpcSetFrequency";
37 constexpr auto RPC_SET_SCALE = "rpcSetScale";
38
39
40
41 // Specific constant values for modulator device state/substate
42
43 constexpr short SUBSTATE_NOTREADY = 105;
44 constexpr short SUBSTATE_READY = 106;
45 constexpr short SUBSTATE_ERROR = 107;
46
47 constexpr short SUBSTATE_OP_IDLE = 201;
48 constexpr short SUBSTATE_OP_RAMP_DOWN = 202;
49 constexpr short SUBSTATE_OP_RAMP_UP = 212;
50 constexpr short SUBSTATE_OP_WAIT_START = 213;
51 constexpr short SUBSTATE_OP_ACTIVE = 214;
52 constexpr short SUBSTATE_OP_ERROR = 215;
53
54 constexpr auto SUBSTATE_NOTREADY_STR = "NotReady";
55 constexpr auto SUBSTATE_READY_STR = "Ready";
56 constexpr auto SUBSTATE_ERROR_STR = "Error";
57 constexpr auto SUBSTATE_OP_IDLE_STR = "Idle";
58 constexpr auto SUBSTATE_OP_RAMP_DOWN_STR = "RampDown";
59 constexpr auto SUBSTATE_OP_RAMP_UP_STR = "RampUp";
60 constexpr auto SUBSTATE_OP_WAIT_START_STR = "WaitStart";
61 constexpr auto SUBSTATE_OP_ACTIVE_STR = "Actve";
62 constexpr auto SUBSTATE_OP_ERROR_STR = "OprError";
63
64
65 // Specific constant values for modulator substates
77
78
79
80}
81
82
83#endif //FCF_DEVMGR_DEVICE_MODULATOR_CONFIG_HPP
constexpr int SUBSTATE_ERROR
Definition deviceConfig.hpp:97
constexpr int SUBSTATE_READY
Definition deviceConfig.hpp:95
constexpr auto SUBSTATE_ERROR_STR
Definition deviceConfig.hpp:102
constexpr auto SUBSTATE_NOTREADY_STR
Definition deviceConfig.hpp:99
constexpr auto SUBSTATE_READY_STR
Definition deviceConfig.hpp:101
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
Modulator class source file.
Definition modulator.hpp:17
constexpr auto SUBSTATE_OP_ERROR_STR
Definition modulatorConfig.hpp:62
constexpr short SUBSTATE_OP_ERROR
Definition modulatorConfig.hpp:52
constexpr auto SUBSTATE_OP_RAMP_UP_STR
Definition modulatorConfig.hpp:59
constexpr auto SUBSTATE_OP_WAIT_START_STR
Definition modulatorConfig.hpp:60
constexpr auto RPC_START_CTRL
Definition modulatorConfig.hpp:33
constexpr auto SUBSTATE_OP_ACTIVE_STR
Definition modulatorConfig.hpp:61
constexpr short SUBSTATE_OP_RAMP_DOWN
Definition modulatorConfig.hpp:48
constexpr short SUBSTATE_OP_ACTIVE
Definition modulatorConfig.hpp:51
constexpr short SUBSTATE_ERROR
Definition modulatorConfig.hpp:45
constexpr auto SUBSTATE_OP_IDLE_STR
Definition modulatorConfig.hpp:57
constexpr unsigned int DEFAULT_TIMEOUT
Definition modulatorConfig.hpp:30
constexpr auto RPC_STOP_CTRL
Definition modulatorConfig.hpp:34
constexpr short SUBSTATE_READY
Definition modulatorConfig.hpp:44
constexpr auto SUBSTATE_NOTREADY_STR
Definition modulatorConfig.hpp:54
constexpr auto LOGGER_NAME
Definition modulatorConfig.hpp:24
constexpr auto RPC_SET_TRAJECTORY
Definition modulatorConfig.hpp:35
constexpr short SUBSTATE_OP_IDLE
Definition modulatorConfig.hpp:47
constexpr auto CI_TIMEOUT
Definition modulatorConfig.hpp:27
constexpr short SUBSTATE_NOTREADY
Definition modulatorConfig.hpp:43
constexpr short SUBSTATE_OP_WAIT_START
Definition modulatorConfig.hpp:50
const std::unordered_map< short, std::string > SUBSTATE_MAP
Definition modulatorConfig.hpp:66
constexpr auto RPC_SET_FREQUENCY
Definition modulatorConfig.hpp:36
constexpr short SUBSTATE_OP_RAMP_UP
Definition modulatorConfig.hpp:49
constexpr auto SUBSTATE_OP_RAMP_DOWN_STR
Definition modulatorConfig.hpp:58
constexpr auto RPC_SET_SCALE
Definition modulatorConfig.hpp:37
constexpr auto SUBSTATE_ERROR_STR
Definition modulatorConfig.hpp:56
constexpr auto SUBSTATE_READY_STR
Definition modulatorConfig.hpp:55