ifw-fcf
4.1.0-pre2
devmgr
devices
src
include
fcf
devmgr
devices
iodevHwErrors.hpp
Go to the documentation of this file.
1
10
#ifndef FCF_DEVMGR_DEVICE_IODEV_HW_ERRORS_HPP
11
#define FCF_DEVMGR_DEVICE_IODEV_HW_ERRORS_HPP
12
13
// System headers
14
#include <unordered_map>
15
16
namespace
fcf::devmgr::iodev
{
17
18
enum
{
19
HW_SUCCESS
= 0,
20
HW_ERR_HW_NOT_OP
= 1,
21
HW_ERR_WRONG_CMD
= 2,
22
HW_ERR_INCONSISTENT
= 3,
23
HW_ERR_INIT_FAILURE
= 4,
24
HW_ERR_ENABLE_FAILURE
= 5,
25
HW_ERR_DISABLE_FAILURE
= 6
26
};
27
28
const
std::unordered_map<short, std::string>
hw_errors
= {
29
{
HW_ERR_HW_NOT_OP
,
"TwinCAT not in OP state or CouplerState not mapped"
},
30
{
HW_ERR_WRONG_CMD
,
"unknown command"
},
31
{
HW_ERR_INCONSISTENT
,
"inconsistent hardware signals"
},
32
{
HW_ERR_INIT_FAILURE
,
"init failure"
},
33
{
HW_ERR_ENABLE_FAILURE
,
"enable failure"
},
34
{
HW_ERR_DISABLE_FAILURE
,
"disable failure"
},
35
};
36
37
}
38
39
#endif // FCF_DEVMGR_DEVICE_IODEV_HW_ERRORS_HPP
fcf::devmgr::iodev::HW_ERR_WRONG_CMD
@ HW_ERR_WRONG_CMD
Definition:
iodevHwErrors.hpp:21
fcf::devmgr::iodev::HW_ERR_INCONSISTENT
@ HW_ERR_INCONSISTENT
Definition:
iodevHwErrors.hpp:22
fcf::devmgr::iodev::HW_SUCCESS
@ HW_SUCCESS
Definition:
iodevHwErrors.hpp:19
fcf::devmgr::iodev::HW_ERR_INIT_FAILURE
@ HW_ERR_INIT_FAILURE
Definition:
iodevHwErrors.hpp:23
fcf::devmgr::iodev::HW_ERR_DISABLE_FAILURE
@ HW_ERR_DISABLE_FAILURE
Definition:
iodevHwErrors.hpp:25
fcf::devmgr::iodev::HW_ERR_ENABLE_FAILURE
@ HW_ERR_ENABLE_FAILURE
Definition:
iodevHwErrors.hpp:24
fcf::devmgr::iodev
Definition:
iodev.hpp:20
fcf::devmgr::iodev::HW_ERR_HW_NOT_OP
@ HW_ERR_HW_NOT_OP
Definition:
iodevHwErrors.hpp:20
fcf::devmgr::iodev::hw_errors
const std::unordered_map< short, std::string > hw_errors
Definition:
iodevHwErrors.hpp:28
Generated by
1.8.20