Multithreaded-software/external/soem/soem/ethercatprint.c
char* ec_soeerror2string( uint16 errorcode)
{
   int i = 0;

   while ( (ec_soeerrorlist[i].errorcode != 0xffff) &&
           (ec_soeerrorlist[i].errorcode != errorcode) )
   {
      i++;
   }

   return (char *) ec_soeerrorlist[i].errordescription;
}
/** Look up text string that belongs to SoE error code.
 *
 * @param[in] errorcode   = SoE error code as defined in EtherCAT protocol
 * @return readable string
 */
Look up text string that belongs to SoE error code.
@param[in] errorcode   = SoE error code as defined in EtherCAT protocol
@return readable string
Look up text string that belongs to SoE error code . @param [ in ] errorcode = SoE error code as defined in EtherCAT protocol @return readable string
char* ec_soeerror2string( uint16 errorcode)
{
   int i = 0;
   while ( (ec_soeerrorlist[i].errorcode != 0xffff) &&
           (ec_soeerrorlist[i].errorcode != errorcode) )
   {
      i++;
   }
   return (char *) ec_soeerrorlist[i].errordescription;
}
char * ec_soeerror2string ( uint16 errorcode ) { int i = 0 ; while ( ( ec_soeerrorlist [ i ] . errorcode != 0xffff ) && ( ec_soeerrorlist [ i ] . errorcode != errorcode ) ) { i ++ ; } return ( char * ) ec_soeerrorlist [ i ] . errordescription ; }
Look up text string that belongs to SoE error code.
Look up text string that belongs to SoE error code .