ifw-fcf 7.1.4
Loading...
Searching...
No Matches
motorBaseRpcErrors.hpp
Go to the documentation of this file.
1
8#ifndef DEVMGR_DEVICE_LAMP_RPC_ERRORS_H
9#define DEVMGR_DEVICE_LAMP_RPC_ERRORS_H
10
11#include <unordered_map>
12
13
15
16 enum {
24 };
25
26 const std::unordered_map<short, std::string> RPC_ERRORS = {
27 {RPC_ERR_NOT_OP, "Cannot control motor. Not in OP state"},
28 {RPC_ERR_NOT_OP_READY, "Call failed. Not in READY."},
29 {RPC_ERR_NOT_OP_NOTREADY, "Call failed. Not in NOTREADY or FAILURE."},
30 {RPC_ERR_MOTOR_LOCAL, "RPC calls are not allowed in Local mode."},
31 {RPC_ERR_MOTOR_LOWER_LIMIT, "Move rejected. Target position beyond lower SW limit."},
32 {RPC_ERR_MOTOR_UPPER_LIMIT, "Move rejected. Target position beyond upper SW limit."}
33 };
34
35}
36#endif // DEVMGR_DEVICE_LAMP_RPC_ERRORS_H
Motor class source file.
Definition motor.hpp:17
const std::unordered_map< short, std::string > RPC_ERRORS
Definition motorBaseRpcErrors.hpp:26
@ RPC_ERR_MOTOR_LOCAL
Definition motorBaseRpcErrors.hpp:21
@ RPC_ERR_MOTOR_LOWER_LIMIT
Definition motorBaseRpcErrors.hpp:22
@ RPC_ERR_MOTOR_UPPER_LIMIT
Definition motorBaseRpcErrors.hpp:23
@ RPC_ERR_NOT_OP_NOTREADY
Definition motorBaseRpcErrors.hpp:20
@ RPC_ERR_NOT_OP
Definition motorBaseRpcErrors.hpp:18
@ RPC_SUCCESS
Definition motorBaseRpcErrors.hpp:17
@ RPC_ERR_NOT_OP_READY
Definition motorBaseRpcErrors.hpp:19