Multithreaded-software/external/soem/soem/ethercatprint.c
const char* ec_sdoerror2string( uint32 sdoerrorcode)
{
   int i = 0;

   while ( (ec_sdoerrorlist[i].errorcode != 0xffffffffUL) &&
           (ec_sdoerrorlist[i].errorcode != sdoerrorcode) )
   {
      i++;
   }

   return ec_sdoerrorlist[i].errordescription;
}
/** Look up text string that belongs to SDO error code.
 *
 * @param[in] sdoerrorcode   = SDO error code as defined in EtherCAT protocol
 * @return readable string
 */
Look up text string that belongs to SDO error code.
@param[in] sdoerrorcode   = SDO error code as defined in EtherCAT protocol
@return readable string
Look up text string that belongs to SDO error code . @param [ in ] sdoerrorcode = SDO error code as defined in EtherCAT protocol @return readable string
const char* ec_sdoerror2string( uint32 sdoerrorcode)
{
   int i = 0;
   while ( (ec_sdoerrorlist[i].errorcode != 0xffffffffUL) &&
           (ec_sdoerrorlist[i].errorcode != sdoerrorcode) )
   {
      i++;
   }
   return ec_sdoerrorlist[i].errordescription;
}
const char * ec_sdoerror2string ( uint32 sdoerrorcode ) { int i = 0 ; while ( ( ec_sdoerrorlist [ i ] . errorcode != 0xffffffffUL ) && ( ec_sdoerrorlist [ i ] . errorcode != sdoerrorcode ) ) { i ++ ; } return ec_sdoerrorlist [ i ] . errordescription ; }
Look up text string that belongs to SDO error code.
Look up text string that belongs to SDO error code .