ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
modulatorConfig.hpp
Go to the documentation of this file.
1
7
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 // Specifics modulator status values
30 constexpr auto CI_STAT_ACTIVE_FREQ = "active_freq";
31 constexpr auto CI_STAT_XFREQ = "xfreq";
32 constexpr auto CI_STAT_YFREQ = "yfreq";
33 constexpr auto CI_STAT_XAMP = "xamp";
34 constexpr auto CI_STAT_YAMP = "yamp";
35 constexpr auto CI_STAT_XPHI = "xphi";
36 constexpr auto CI_STAT_YPHI = "yphi";
37
38 constexpr unsigned int DEFAULT_TIMEOUT = 10000;
39
40 // Specific modulator RPC
41 constexpr auto RPC_START_CTRL = "rpcStartCtrl";
42 constexpr auto RPC_STOP_CTRL = "rpcStopCtrl";
43 constexpr auto RPC_SET_TRAJECTORY = "rpcSetTrajectory";
44 constexpr auto RPC_SET_FREQUENCY = "rpcSetFrequency";
45 constexpr auto RPC_SET_SCALE = "rpcSetScale";
46
47 // Specific constant values for modulator device state/substate
48
49 constexpr short SUBSTATE_OP_IDLE = 200;
50 constexpr short SUBSTATE_OP_ARMED = 201;
51 constexpr short SUBSTATE_OP_ACTIVE = 202;
52 constexpr short SUBSTATE_OP_UPDATE = 203;
53 constexpr short SUBSTATE_OP_DISARM = 204;
54
55 constexpr auto SUBSTATE_OP_IDLE_STR = "Idle";
56 constexpr auto SUBSTATE_OP_ARMED_STR = "Armed";
57 constexpr auto SUBSTATE_OP_ACTIVE_STR = "Active";
58 constexpr auto SUBSTATE_OP_UPDATE_STR = "Update";
59 constexpr auto SUBSTATE_OP_DISARM_STR = "Disarm";
60
61 // Specific constant values for modulator substates
73
74
75
76}
77
78
79#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 CI_STAT_YFREQ
Definition modulatorConfig.hpp:32
constexpr short SUBSTATE_OP_UPDATE
Definition modulatorConfig.hpp:52
constexpr short SUBSTATE_OP_ARMED
Definition modulatorConfig.hpp:50
constexpr auto SUBSTATE_OP_ARMED_STR
Definition modulatorConfig.hpp:56
constexpr auto RPC_START_CTRL
Definition modulatorConfig.hpp:41
constexpr auto SUBSTATE_OP_ACTIVE_STR
Definition modulatorConfig.hpp:57
constexpr auto CI_STAT_XFREQ
Definition modulatorConfig.hpp:31
constexpr short SUBSTATE_OP_ACTIVE
Definition modulatorConfig.hpp:51
constexpr short SUBSTATE_OP_DISARM
Definition modulatorConfig.hpp:53
constexpr auto SUBSTATE_OP_IDLE_STR
Definition modulatorConfig.hpp:55
constexpr unsigned int DEFAULT_TIMEOUT
Definition modulatorConfig.hpp:38
constexpr auto RPC_STOP_CTRL
Definition modulatorConfig.hpp:42
constexpr auto LOGGER_NAME
Definition modulatorConfig.hpp:24
constexpr auto RPC_SET_TRAJECTORY
Definition modulatorConfig.hpp:43
constexpr short SUBSTATE_OP_IDLE
Definition modulatorConfig.hpp:49
constexpr auto CI_TIMEOUT
Definition modulatorConfig.hpp:27
constexpr auto SUBSTATE_OP_DISARM_STR
Definition modulatorConfig.hpp:59
constexpr auto CI_STAT_YPHI
Definition modulatorConfig.hpp:36
constexpr auto CI_STAT_XPHI
Definition modulatorConfig.hpp:35
constexpr auto SUBSTATE_OP_UPDATE_STR
Definition modulatorConfig.hpp:58
const std::unordered_map< short, std::string > SUBSTATE_MAP
Definition modulatorConfig.hpp:62
constexpr auto CI_STAT_ACTIVE_FREQ
Definition modulatorConfig.hpp:30
constexpr auto RPC_SET_FREQUENCY
Definition modulatorConfig.hpp:44
constexpr auto CI_STAT_YAMP
Definition modulatorConfig.hpp:34
constexpr auto RPC_SET_SCALE
Definition modulatorConfig.hpp:45
constexpr auto CI_STAT_XAMP
Definition modulatorConfig.hpp:33