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

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

   return (char *) ec_ALstatuscodelist[i].ALstatuscodedescription;
}
/** Look up text string that belongs to AL status code.
 *
 * @param[in] ALstatuscode   = AL status code as defined in EtherCAT protocol
 * @return readable string
 */
Look up text string that belongs to AL status code.
@param[in] ALstatuscode   = AL status code as defined in EtherCAT protocol
@return readable string
Look up text string that belongs to AL status code . @param [ in ] ALstatuscode = AL status code as defined in EtherCAT protocol @return readable string
char* ec_ALstatuscode2string( uint16 ALstatuscode)
{
   int i = 0;
   while ( (ec_ALstatuscodelist[i].ALstatuscode != 0xffff) &&
           (ec_ALstatuscodelist[i].ALstatuscode != ALstatuscode) )
   {
      i++;
   }
   return (char *) ec_ALstatuscodelist[i].ALstatuscodedescription;
}
char * ec_ALstatuscode2string ( uint16 ALstatuscode ) { int i = 0 ; while ( ( ec_ALstatuscodelist [ i ] . ALstatuscode != 0xffff ) && ( ec_ALstatuscodelist [ i ] . ALstatuscode != ALstatuscode ) ) { i ++ ; } return ( char * ) ec_ALstatuscodelist [ i ] . ALstatuscodedescription ; }
Look up text string that belongs to AL status code.
Look up text string that belongs to AL status code .