ifw-fcf  5.0.0-pre2
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: shutter.hpp:19
@ HW_SUCCESS
Definition: shutterHwErrors.hpp:18
@ HW_ERR_UNEXPECTED_NONE
Definition: shutterHwErrors.hpp:22
@ HW_ERR_BOTH_SIG_ACTIVE
Definition: shutterHwErrors.hpp:25
@ HW_ERR_INIT_FAILURE
Definition: shutterHwErrors.hpp:20
@ HW_ERR_TIMEOUT_CLOSE
Definition: shutterHwErrors.hpp:29
@ HW_ERR_TIMEOUT_ENABLE
Definition: shutterHwErrors.hpp:26
@ HW_ERR_UNEXPECTED_CLOSED
Definition: shutterHwErrors.hpp:21
@ HW_ERR_TIMEOUT_OPEN
Definition: shutterHwErrors.hpp:30
@ HW_ERR_TIMEOUT_INIT
Definition: shutterHwErrors.hpp:28
@ HW_ERR_UNEXPECTED_OPENED
Definition: shutterHwErrors.hpp:23
@ HW_ERR_FAULT_SIG
Definition: shutterHwErrors.hpp:24
@ HW_ERR_HW_NOT_OP
Definition: shutterHwErrors.hpp:19
@ HW_ERR_TIMEOUT_DISABLE
Definition: shutterHwErrors.hpp:27
const std::unordered_map< short, std::string > hw_errors
Definition: shutterHwErrors.hpp:34