ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
shutterHwErrors.hpp
Go to the documentation of this file.
1 
9 #ifndef FCF_DEVMGR_DEVICE_SHUTTER_HW_ERRORS_HPP
10 #define FCF_DEVMGR_DEVICE_SHUTTER_HW_ERRORS_HPP
11 
12 // System headers
13 #include <unordered_map>
14 
15 namespace fcf::devmgr::shutter {
16 
17  enum {
31  };
32 
33 
34  const std::unordered_map<short, std::string> hw_errors = {
35  {HW_ERR_HW_NOT_OP, "TwinCAT not in OP state or CouplerState not mapped."},
36  {HW_ERR_INIT_FAILURE, "init failure."},
37  {HW_ERR_UNEXPECTED_CLOSED, "unexpectedly closed."},
38  {HW_ERR_UNEXPECTED_NONE, "unexpectedly no open or closed signal active."},
39  {HW_ERR_UNEXPECTED_OPENED , "unexpectedly opened."},
40  {HW_ERR_FAULT_SIG, "fault signal active."},
41  {HW_ERR_BOTH_SIG_ACTIVE, "both open and closed signals active."},
42  {HW_ERR_TIMEOUT_ENABLE, "enable timed out."},
43  {HW_ERR_TIMEOUT_DISABLE, "disable timed out."},
44  {HW_ERR_TIMEOUT_INIT, "init timed out."},
45  {HW_ERR_TIMEOUT_CLOSE, "close timed out."},
46  {HW_ERR_TIMEOUT_OPEN, "open timed out."}
47  };
48 
49 }
50 
51 #endif // FCF_DEVMGR_DEVICE_SHUTTER_HW_ERRORS_HPP
Definition: shutterHwErrors.hpp:30
Definition: shutterHwErrors.hpp:22
const std::unordered_map< short, std::string > hw_errors
Definition: shutterHwErrors.hpp:34
Definition: shutterHwErrors.hpp:21
Definition: shutterHwErrors.hpp:19
Definition: shutterHwErrors.hpp:26
Definition: shutterHwErrors.hpp:29
Definition: shutterHwErrors.hpp:24
Definition: shutterHwErrors.hpp:28
Definition: shutterHwErrors.hpp:18
Definition: shutterHwErrors.hpp:27
Definition: shutterHwErrors.hpp:23
Definition: shutterHwErrors.hpp:20
Definition: shutterHwErrors.hpp:25