ifw-fcf 6.0.0
Loading...
Searching...
No Matches
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
16namespace fcf::devmgr::iodev {
17
18 enum {
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
Definition: iodev.hpp:18
@ RPC_ERR_NOT_OP_READY
Definition: iodevRpcErrors.hpp:21
@ RPC_ERR_NOT_OP
Definition: iodevRpcErrors.hpp:20
@ RPC_ERR_NOT_OP_NOTREADY
Definition: iodevRpcErrors.hpp:22
@ RPC_SUCCESS
Definition: iodevRpcErrors.hpp:19
const std::unordered_map< short, std::string > rpc_errors
Definition: iodevRpcErrors.hpp:25