Motion Master
Loading...
Searching...
No Matches
igh_util.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef LINUX_BUILD
4
5#include "igh_dynamic.h"
6#include "util.h"
7
8static inline const std::map<uint32_t, std::string>
9 ecat_master_foe_error_messages_ = {
10 {FOE_BUSY, "Busy"},
11 {FOE_READY, "Ready"},
12 {FOE_IDLE, "Idle"},
13 {FOE_WC_ERROR, "Working counter error"},
14 {FOE_RECEIVE_ERROR, "Receive error"},
15 {FOE_PROT_ERROR, "Protocol error"},
16 {FOE_NODATA_ERROR, "No data error"},
17 {FOE_PACKETNO_ERROR, "Packet number error"},
18 {FOE_OPCODE_ERROR, "OpCode error"},
19 {FOE_TIMEOUT_ERROR, "Timeout error"},
20 {FOE_SEND_RX_DATA_ERROR, "Error sending received data"},
21 {FOE_RX_DATA_ACK_ERROR, "Error acknowledging received data"},
22 {FOE_ACK_ERROR, "Acknowledge error"},
23 {FOE_MBOX_FETCH_ERROR, "Error fetching data from mailbox"},
24 {FOE_READ_NODATA_ERROR, "No data while reading"},
25 {FOE_MBOX_PROT_ERROR, "Mailbox protocol error"}};
26
34bool rescan(ec_master_t *master);
35
43int32_t get_slave_count(ec_master_t *master);
44
50bool is_igh_compatible();
51
61void igh_backward_compatibility_hack(ec_slave_info_t &slave_info);
62
75void wait_for_slave_init(Notifier &notifier);
76
86void wait_for_slaves_eol_mode(Notifier &notifier);
87
95std::string get_ecat_foe_error_message(int error_code);
96
97#endif
Definition: notifier.h:10