ifw  0.0.1-dev
 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 DEVMGR_DEVICE_LAMP_HW_ERRORS_HPP
11 #define DEVMGR_DEVICE_LAMP_HW_ERRORS_HPP
12 
13 // System headers
14 #include <unordered_map>
15 
16 namespace devmgr {
17  namespace lamp {
18 
19  enum {
20  HW_SUCCESS = 0,
21  HW_ERR_HW_NOT_OP = 1,
25  HW_ERR_FAULT_SIG = 5,
26  HW_ERR_MAXON = 6,
30  HW_ERR_TIMEOUT_OFF = 10,
32  };
33 
34  const std::unordered_map<short, std::string> hw_errors = {
35  {HW_SUCCESS, ""},
36  {HW_ERR_HW_NOT_OP, "not in operational state"},
37  {HW_ERR_INIT_FAILURE, "init failure"},
38  {HW_ERR_UNEXPECTED_OFF, "unexpectedly switched off."},
39  {HW_ERR_UNEXPECTED_ON, "unexpectedly switched on."},
40  {HW_ERR_FAULT_SIG, "fault signal active."},
41  {HW_ERR_MAXON, "maximum on time exceeded."},
42  {HW_ERR_STILL_COOLING, "on command not allowed while cooling."},
43  {HW_ERR_TIMEOUT_DISABLE, "disable timed out."},
44  {HW_ERR_TIMEOUT_INIT, "init timed out."},
45  {HW_ERR_TIMEOUT_OFF, "switching off timed out."},
46  {HW_ERR_TIMEOUT_ON, "switching on timed out."}
47  };
48 
49  }
50 }
51 
52 #endif // DEVMGR_DEVICE_LAMP_HW_ERRORS_HPP
Definition: lampHwErrors.hpp:21
Definition: lampHwErrors.hpp:28
Definition: lampHwErrors.hpp:20
Definition: lampHwErrors.hpp:30
Definition: lampHwErrors.hpp:22
Definition: lampHwErrors.hpp:27
const std::unordered_map< short, std::string > hw_errors
Definition: lampHwErrors.hpp:34
Definition: lampHwErrors.hpp:23
Definition: lampHwErrors.hpp:25
Definition: lampHwErrors.hpp:29
Definition: lampHwErrors.hpp:26
Definition: lampHwErrors.hpp:24
Definition: lampHwErrors.hpp:31