Module to convert EtherCAT errors to readable messages. More...
Go to the source code of this file.
Classes | |
struct | ec_ALstatuscodelist_t |
struct | ec_mbxerrorlist_t |
struct | ec_sdoerrorlist_t |
struct | ec_soeerrorlist_t |
Macros | |
#define | EC_MAXERRORNAME 127 |
Functions | |
char * | ec_ALstatuscode2string (uint16 ALstatuscode) |
char * | ec_elist2string (void) |
char * | ec_mbxerror2string (uint16 errorcode) |
const char * | ec_sdoerror2string (uint32 sdoerrorcode) |
char * | ec_soeerror2string (uint16 errorcode) |
char * | ecx_elist2string (ecx_contextt *context) |
char * | ecx_err2string (const ec_errort Ec) |
Variables | |
const ec_ALstatuscodelist_t | ec_ALstatuscodelist [] |
const ec_mbxerrorlist_t | ec_mbxerrorlist [] |
const ec_sdoerrorlist_t | ec_sdoerrorlist [] |
const ec_soeerrorlist_t | ec_soeerrorlist [] |
char | estring [EC_MAXERRORNAME] |
Module to convert EtherCAT errors to readable messages.
SDO abort messages and AL status codes are used to relay slave errors to the user application. This module converts the binary codes to readable text. For the defined error codes see the EtherCAT protocol documentation.
Definition in file ethercatprint.c.
#define EC_MAXERRORNAME 127 |
Definition at line 20 of file ethercatprint.c.
char* ec_ALstatuscode2string | ( | uint16 | ALstatuscode | ) |
Look up text string that belongs to AL status code.
[in] | ALstatuscode | = AL status code as defined in EtherCAT protocol |
Definition at line 245 of file ethercatprint.c.
char* ec_elist2string | ( | void | ) |
Definition at line 371 of file ethercatprint.c.
char* ec_mbxerror2string | ( | uint16 | errorcode | ) |
Look up text string that belongs to MBX error code.
[in] | errorcode | = MBX error code as defined in EtherCAT protocol |
Definition at line 281 of file ethercatprint.c.
const char* ec_sdoerror2string | ( | uint32 | sdoerrorcode | ) |
Look up text string that belongs to SDO error code.
[in] | sdoerrorcode | = SDO error code as defined in EtherCAT protocol |
Definition at line 227 of file ethercatprint.c.
char* ec_soeerror2string | ( | uint16 | errorcode | ) |
Look up text string that belongs to SoE error code.
[in] | errorcode | = SoE error code as defined in EtherCAT protocol |
Definition at line 263 of file ethercatprint.c.
char* ecx_elist2string | ( | ecx_contextt * | context | ) |
Look up error in ec_errorlist and convert to text string.
[in] | context | = context struct |
Definition at line 356 of file ethercatprint.c.
char* ecx_err2string | ( | const ec_errort | Ec | ) |
Convert an error to text string.
[in] | Ec | = Struct describing the error. |
Definition at line 299 of file ethercatprint.c.
const ec_ALstatuscodelist_t ec_ALstatuscodelist[] |
AL status code list definition
Definition at line 97 of file ethercatprint.c.
const ec_mbxerrorlist_t ec_mbxerrorlist[] |
MBX error list definition
Definition at line 209 of file ethercatprint.c.
const ec_sdoerrorlist_t ec_sdoerrorlist[] |
SDO error list definition
Definition at line 61 of file ethercatprint.c.
const ec_soeerrorlist_t ec_soeerrorlist[] |
SoE error list definition
Definition at line 154 of file ethercatprint.c.
char estring[EC_MAXERRORNAME] |
Definition at line 58 of file ethercatprint.c.