ifw-fcf  4.1.0-pre2
piezoRpcErrors.hpp
Go to the documentation of this file.
1 
10 #ifndef FCF_DEVMGR_DEVICE_PIEZO_RPC_ERRORS_H
11 #define FCF_DEVMGR_DEVICE_PIEZO_RPC_ERRORS_H
12 
13 #include <unordered_map>
14 
15 namespace fcf {
16  namespace devmgr {
17  namespace piezo {
18 
19  enum {
27  };
28 
29  const std::unordered_map<short, std::string> rpc_errors = {
30  {RPC_ERR_NOT_OP, "Cannot disable Piezo. Not in OP state"},
31  {RPC_ERR_NOT_OP_READY, "Cannot enable Piezo. Not in NOT_OP_READY."},
32  {RPC_ERR_NOT_OP_NOTREADY, "Cannot init Piezo. Not in NOT_OP_NOTREADY or FAILURE."},
33  {RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"},
34  {RPC_ERROR_MOVING_USER, "Out of limits target when moving in UU"},
35  {RPC_ERROR_MOVING_BIT, "Out of limits target when moving in bits"}
36  };
37 
38 }
39 }
40 }
41 
42 #endif // FCF_DEVMGR_DEVICE_PIEZO_RPC_ERRORS_H
fcf::devmgr::piezo::RPC_ERR_NOT_OP_NOTREADY
@ RPC_ERR_NOT_OP_NOTREADY
Definition: piezoRpcErrors.hpp:23
fcf::devmgr::piezo::RPC_ERR_NOT_OP_READY
@ RPC_ERR_NOT_OP_READY
Definition: piezoRpcErrors.hpp:22
fcf::devmgr::piezo::RPC_ERR_NOT_OP
@ RPC_ERR_NOT_OP
Definition: piezoRpcErrors.hpp:21
fcf::devmgr::piezo::rpc_errors
const std::unordered_map< short, std::string > rpc_errors
Definition: piezoRpcErrors.hpp:29
fcf::devmgr::piezo::RPC_ERR_LOCAL
@ RPC_ERR_LOCAL
Definition: piezoRpcErrors.hpp:24
fcf
Definition: actionMgr.cpp:29
fcf::devmgr::piezo::RPC_ERROR_MOVING_USER
@ RPC_ERROR_MOVING_USER
Definition: piezoRpcErrors.hpp:25
piezo
Definition: __init__.py:1
fcf::devmgr::piezo::RPC_ERROR_MOVING_BIT
@ RPC_ERROR_MOVING_BIT
Definition: piezoRpcErrors.hpp:26
fcf::devmgr::piezo::RPC_SUCCESS
@ RPC_SUCCESS
Definition: piezoRpcErrors.hpp:20