ifw-fcf  4.1.0-pre2
drotHwErrors.hpp
Go to the documentation of this file.
1 
10 #ifndef FCF_DEVMGR_DEVICE_DROT_HW_ERRORS_HPP
11 #define FCF_DEVMGR_DEVICE_DROT_HW_ERRORS_HPP
12 
13 #include <unordered_map>
14 
15 namespace fcf {
16  namespace devmgr {
17  namespace drot {
18 
19  enum {
20  HW_SUCCESS = 100,
27  };
28 
29  const std::unordered_map<short, std::string> hw_errors = {
30  {HW_ERR_HW_NOT_OP, "TwinCAT not in OP state or CouplerState not mapped"},
31  {HW_ERR_WRONG_CMD, "Drot unknown command"},
32  {HW_ERR_INCONSISTENT, "Drot inconsistent hardware signals"},
33  {HW_ERR_INIT_FAILURE, "Drot init failure"},
34  {HW_ERR_ENABLE_FAILURE, "Drot enable failure"},
35  {HW_ERR_DISABLE_FAILURE, "Drot disable failure"},
36  };
37 
38  }
39  }
40 }
41 #endif // FCF_DEVMGR_DEVICE_DROT_HW_ERRORS_HPP
fcf::devmgr::drot::HW_ERR_WRONG_CMD
@ HW_ERR_WRONG_CMD
Definition: drotHwErrors.hpp:22
fcf::devmgr::drot::HW_SUCCESS
@ HW_SUCCESS
Definition: drotHwErrors.hpp:20
fcf::devmgr::drot::HW_ERR_INCONSISTENT
@ HW_ERR_INCONSISTENT
Definition: drotHwErrors.hpp:23
fcf::devmgr::drot::HW_ERR_HW_NOT_OP
@ HW_ERR_HW_NOT_OP
Definition: drotHwErrors.hpp:21
drot
Definition: __init__.py:1
fcf::devmgr::drot::hw_errors
const std::unordered_map< short, std::string > hw_errors
Definition: drotHwErrors.hpp:29
fcf::devmgr::drot::HW_ERR_ENABLE_FAILURE
@ HW_ERR_ENABLE_FAILURE
Definition: drotHwErrors.hpp:25
fcf
Definition: actionMgr.cpp:29
fcf::devmgr::drot::HW_ERR_DISABLE_FAILURE
@ HW_ERR_DISABLE_FAILURE
Definition: drotHwErrors.hpp:26
fcf::devmgr::drot::HW_ERR_INIT_FAILURE
@ HW_ERR_INIT_FAILURE
Definition: drotHwErrors.hpp:24