ifw-fcf
4.1.0-pre2
devmgr
devices
src
include
fcf
devmgr
devices
iodevRpcErrors.hpp
Go to the documentation of this file.
1
10
#ifndef DEVMGR_DEVICE_IODEV_RPC_ERRORS_H
11
#define DEVMGR_DEVICE_IODEV_RPC_ERRORS_H
12
13
// System headers
14
#include <unordered_map>
15
16
namespace
fcf::devmgr::iodev
{
17
18
enum
{
19
RPC_SUCCESS
= 0,
20
RPC_ERR_NOT_OP
= -1,
21
RPC_ERR_NOT_OP_READY
= -2,
22
RPC_ERR_NOT_OP_NOTREADY
= -3
23
};
24
25
const
std::unordered_map<short, std::string>
rpc_errors
= {
26
{
RPC_ERR_NOT_OP
,
"Cannot disable Sensor. Not in OP state"
},
27
{
RPC_ERR_NOT_OP_READY
,
"Cannot enable Sensor. Not in READY."
},
28
{
RPC_ERR_NOT_OP_NOTREADY
,
"Cannot init Sensor. Not in NOTREADY or FAILURE."
}
29
};
30
31
}
32
#endif // DEVMGR_DEVICE_IODEV_RPC_ERRORS_H
fcf::devmgr::iodev
Definition:
iodev.hpp:20
fcf::devmgr::iodev::RPC_ERR_NOT_OP_NOTREADY
@ RPC_ERR_NOT_OP_NOTREADY
Definition:
iodevRpcErrors.hpp:22
fcf::devmgr::iodev::RPC_ERR_NOT_OP
@ RPC_ERR_NOT_OP
Definition:
iodevRpcErrors.hpp:20
fcf::devmgr::iodev::rpc_errors
const std::unordered_map< short, std::string > rpc_errors
Definition:
iodevRpcErrors.hpp:25
fcf::devmgr::iodev::RPC_ERR_NOT_OP_READY
@ RPC_ERR_NOT_OP_READY
Definition:
iodevRpcErrors.hpp:21
fcf::devmgr::iodev::RPC_SUCCESS
@ RPC_SUCCESS
Definition:
iodevRpcErrors.hpp:19
Generated by
1.8.20