ifw-fcf
4.1.0-pre2
devmgr
devices
src
include
fcf
devmgr
devices
smaractHwErrors.hpp
Go to the documentation of this file.
1
10
#ifndef FCF_DEVMGR_DEVICE_SMARACT_HW_ERRORS_HPP
11
#define FCF_DEVMGR_DEVICE_SMARACT_HW_ERRORS_HPP
12
13
// System headers
14
#include <unordered_map>
15
16
namespace
fcf::devmgr::smaract
{
17
18
enum
{
19
HW_SUCCESS
= 0,
20
HW_ERR_HW_NOT_OP
= 1,
21
HW_ERR_LOCAL
= 2,
22
HW_ERR_INIT_ABORTED
= 3,
23
24
25
26
27
};
28
29
30
31
const
std::unordered_map<short, std::string>
hw_errors
= {
32
{
HW_ERR_HW_NOT_OP
,
"TwinCAT not OP or CouplerState not mapped."
},
33
{
HW_ERR_LOCAL
,
"control not allowed. Motor in Local mode."
},
34
{
HW_ERR_INIT_ABORTED
,
"INIT command aborted."
},
35
36
37
38
};
39
40
}
41
42
#endif // FCF_DEVMGR_DEVICE_SMARACT_HW_ERRORS_HPP
fcf::devmgr::smaract::hw_errors
const std::unordered_map< short, std::string > hw_errors
Definition:
smaractHwErrors.hpp:31
fcf::devmgr::smaract::HW_SUCCESS
@ HW_SUCCESS
Definition:
smaractHwErrors.hpp:19
fcf::devmgr::smaract::HW_ERR_HW_NOT_OP
@ HW_ERR_HW_NOT_OP
Definition:
smaractHwErrors.hpp:20
fcf::devmgr::smaract::HW_ERR_LOCAL
@ HW_ERR_LOCAL
Definition:
smaractHwErrors.hpp:21
fcf::devmgr::smaract
Definition:
smaract.hpp:21
fcf::devmgr::smaract::HW_ERR_INIT_ABORTED
@ HW_ERR_INIT_ABORTED
Definition:
smaractHwErrors.hpp:22
Generated by
1.8.20