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