ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
motorRpcErrors.hpp
Go to the documentation of this file.
1 
10 #ifndef DEVMGR_DEVICE_LAMP_RPC_ERRORS_H
11 #define DEVMGR_DEVICE_LAMP_RPC_ERRORS_H
12 
13 // System headers
14 #include <unordered_map>
15 
16 namespace fcf::devmgr::motor {
17 
18  enum {
26  };
27 
28  const std::unordered_map<short, std::string> rpc_errors = {
29  {RPC_ERR_NOT_OP, "Cannot disable motor. Not in OP state"},
30  {RPC_ERR_NOT_STANDBY_READY, "Cannot enable motor. Not in READY."},
31  {RPC_ERR_NOT_STANDBY_NOTREADY, "Cannot init motor. Not in NOTREADY or FAILURE."},
32  {RPC_ERR_MOTOR_LOCAL, "RPC calls are not allowed in Local mode."},
33  {RPC_ERR_MOTOR_LOWER_LIMIT, "Move rejected. Target position beyond lower SW limit."},
34  {RPC_ERR_MOTOR_UPPER_LIMIT, "Move rejected. Target position beyond upper SW limit."}
35  };
36 
37 }
38 #endif // DEVMGR_DEVICE_LAMP_RPC_ERRORS_H
Definition: motorRpcErrors.hpp:25
const std::unordered_map< short, std::string > rpc_errors
Definition: motorRpcErrors.hpp:28
Definition: motorRpcErrors.hpp:19
Definition: motorRpcErrors.hpp:23
Definition: motorRpcErrors.hpp:20
Definition: motorRpcErrors.hpp:24
Definition: motorRpcErrors.hpp:22
Definition: motorRpcErrors.hpp:21