ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lampHwErrors.hpp
Go to the documentation of this file.
1 
10 #ifndef FCF_DEVMGR_DEVICE_LAMP_HW_ERRORS_HPP
11 #define FCF_DEVMGR_DEVICE_LAMP_HW_ERRORS_HPP
12 
13 // System headers
14 #include <unordered_map>
15 
16 namespace fcf::devmgr::lamp {
17 
18  enum {
31  };
32 
33  const std::unordered_map<short, std::string> hw_errors = {
34  {HW_SUCCESS, ""},
35  {HW_ERR_HW_NOT_OP, "TwinCAT not in OP state or CouplerState not mapped"},
36  {HW_ERR_INIT_FAILURE, "INIT command aborted due to STOP or RESET"},
37  {HW_ERR_UNEXPECTED_OFF, "unexpectedly switched off."},
38  {HW_ERR_UNEXPECTED_ON, "unexpectedly switched on."},
39  {HW_ERR_FAULT_SIG, "fault signal active."},
40  {HW_ERR_MAXON, "maximum on time exceeded."},
41  {HW_ERR_STILL_COOLING, "on command not allowed while cooling."},
42  {HW_ERR_TIMEOUT_DISABLE, "disable timed out."},
43  {HW_ERR_TIMEOUT_INIT, "init timed out."},
44  {HW_ERR_TIMEOUT_OFF, "switching off timed out."},
45  {HW_ERR_TIMEOUT_ON, "switching on timed out."}
46  };
47 
48 }
49 
50 #endif // FCF_DEVMGR_DEVICE_LAMP_HW_ERRORS_HPP
const std::unordered_map< short, std::string > hw_errors
Definition: lampHwErrors.hpp:33
Definition: lampHwErrors.hpp:20
Definition: lampHwErrors.hpp:30
Definition: lampHwErrors.hpp:27
Definition: lampHwErrors.hpp:19
Definition: lampHwErrors.hpp:28
Definition: lampHwErrors.hpp:23
Definition: lampHwErrors.hpp:22
Definition: lampHwErrors.hpp:26
Definition: lampHwErrors.hpp:25
Definition: lampHwErrors.hpp:24
Definition: lampHwErrors.hpp:21
Definition: lampHwErrors.hpp:29