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