Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB
Module to convert EtherCAT errors to readable messages. More...
Go to the source code of this file.
Functions | |
const char * | ec_sdoerror2string (uint32 sdoerrorcode) |
Look up text string that belongs to SDO error code. | |
char * | ec_ALstatuscode2string (uint16 ALstatuscode) |
Look up text string that belongs to AL status code. | |
char * | ec_soeerror2string (uint16 errorcode) |
Look up text string that belongs to SoE error code. | |
char * | ec_mbxerror2string (uint16 errorcode) |
Look up text string that belongs to MBX error code. | |
char * | ecx_elist2string (ecx_contextt *context) |
Look up error in ec_errorlist and convert to text string. | |
Variables | |
const ec_sdoerrorlist_t | ec_sdoerrorlist [] |
SDO error list definition. | |
const ec_ALstatuscodelist_t | ec_ALstatuscodelist [] |
AL status code list definition. | |
const ec_soeerrorlist_t | ec_soeerrorlist [] |
SoE error list definition. | |
const ec_mbxerrorlist_t | ec_mbxerrorlist [] |
MBX error list definition. |
Detailed Description
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.
Function Documentation
char* ec_ALstatuscode2string | ( | uint16 | ALstatuscode ) |
Look up text string that belongs to AL status code.
- Parameters:
-
[in] ALstatuscode = AL status code as defined in EtherCAT protocol
- Returns:
- readable string
Definition at line 245 of file ethercatprint.c.
char* ec_mbxerror2string | ( | uint16 | errorcode ) |
Look up text string that belongs to MBX error code.
- Parameters:
-
[in] errorcode = MBX error code as defined in EtherCAT protocol
- Returns:
- readable string
Definition at line 281 of file ethercatprint.c.
const char* ec_sdoerror2string | ( | uint32 | sdoerrorcode ) |
Look up text string that belongs to SDO error code.
- Parameters:
-
[in] sdoerrorcode = SDO error code as defined in EtherCAT protocol
- Returns:
- readable string
Definition at line 227 of file ethercatprint.c.
char* ec_soeerror2string | ( | uint16 | errorcode ) |
Look up text string that belongs to SoE error code.
- Parameters:
-
[in] errorcode = SoE error code as defined in EtherCAT protocol
- Returns:
- readable string
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.
- Parameters:
-
[in] context = context struct
- Returns:
- readable string
Definition at line 299 of file ethercatprint.c.
Variable Documentation
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[] |
{ {0x0000, "No error" }, {0x0001, "Syntax of 6 octet Mailbox Header is wrong" }, {0x0002, "The mailbox protocol is not supported" }, {0x0003, "Channel Field contains wrong value"}, {0x0004, "The service is no supported"}, {0x0005, "Invalid mailbox header"}, {0x0006, "Length of received mailbox data is too short"}, {0x0007, "No more memory in slave"}, {0x0008, "The length of data is inconsistent"}, {0xffff, "Unknown"} }
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.
Generated on Tue Jul 12 2022 18:21:14 by
