ifw-fcf  4.1.0-pre2
adcRpcErrors.hpp
Go to the documentation of this file.
1 
10 #ifndef FCF_DEVMGR_DEVICE_ADC_RPC_ERRORS_H
11 #define FCF_DEVMGR_DEVICE_ADC_RPC_ERRORS_H
12 
13 #include <unordered_map>
14 
15 namespace fcf {
16  namespace devmgr {
17  namespace adc {
18 
19  enum {
27  };
28 
29  const std::unordered_map<short, std::string> rpc_errors = {
30  {RPC_ERR_NOT_OP, "Cannot disable Adc. Not in OP state"},
31  {RPC_ERR_NOT_OP_READY, "Cannot enable Adc. Not in NOT_OP_READY."},
32  {RPC_ERR_NOT_OP_NOTREADY, "Cannot init Adc. Not in NOT_OP_NOTREADY or FAILURE."},
33  {RPC_ERR_MOTOR_LOCAL, "RPC calls are not allowed in Local mode."},
34  {RPC_ERR_MOTOR_LOWER_LIMIT, "Move rejected. Target position beyond lower SW limit."},
35  {RPC_ERR_MOTOR_UPPER_LIMIT, "Move rejected. Target position beyond upper SW limit."}
36  };
37 
38  }
39  }
40 }
41 #endif // FCF_DEVMGR_DEVICE_ADC_RPC_ERRORS_H
fcf::devmgr::adc::RPC_ERR_MOTOR_LOCAL
@ RPC_ERR_MOTOR_LOCAL
Definition: adcRpcErrors.hpp:24
fcf::devmgr::adc::RPC_ERR_NOT_OP_READY
@ RPC_ERR_NOT_OP_READY
Definition: adcRpcErrors.hpp:22
fcf::devmgr::adc::RPC_ERR_MOTOR_LOWER_LIMIT
@ RPC_ERR_MOTOR_LOWER_LIMIT
Definition: adcRpcErrors.hpp:25
fcf::devmgr::adc::RPC_SUCCESS
@ RPC_SUCCESS
Definition: adcRpcErrors.hpp:20
fcf
Definition: actionMgr.cpp:29
fcf::devmgr::adc::RPC_ERR_NOT_OP
@ RPC_ERR_NOT_OP
Definition: adcRpcErrors.hpp:21
fcf::devmgr::adc::RPC_ERR_NOT_OP_NOTREADY
@ RPC_ERR_NOT_OP_NOTREADY
Definition: adcRpcErrors.hpp:23
fcf::devmgr::adc::rpc_errors
const std::unordered_map< short, std::string > rpc_errors
Definition: adcRpcErrors.hpp:29
fcf::devmgr::adc::RPC_ERR_MOTOR_UPPER_LIMIT
@ RPC_ERR_MOTOR_UPPER_LIMIT
Definition: adcRpcErrors.hpp:26
adc
Definition: __init__.py:1