ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 {
25  };
26 
27  const std::unordered_map<short, std::string> rpc_errors = {
28  {RPC_ERR_NOT_OP, "Cannot disable Piezo. Not in OP state"},
29  {RPC_ERR_NOT_STANDBY_READY, "Cannot enable Piezo. Not in STANDBY_READY."},
30  {RPC_ERR_NOT_STANDBY_NOTREADY, "Cannot init Piezo. Not in STANDBY_NOTREADY or FAILURE."},
31  {RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"}
32  };
33 
34 }
35 }
36 }
37 
38 #endif // FCF_DEVMGR_DEVICE_PIEZO_RPC_ERRORS_H
Definition: piezoRpcErrors.hpp:24
const std::unordered_map< short, std::string > rpc_errors
Definition: piezoRpcErrors.hpp:27
Definition: piezoRpcErrors.hpp:23
Definition: piezoRpcErrors.hpp:22
Definition: piezoRpcErrors.hpp:21
Definition: piezoRpcErrors.hpp:20