src/common/cd_error.c File Reference

Error report functions ... at this point. More...

#include <cd_error.h>

Go to the source code of this file.

Data Structures

struct  cd_error_list_t

Functions

const char * cd_ErrorStr (uint8_t error_code)
 Returns an human-readable string based on the given cd_error code.

Variables

struct cd_error_list_t cd_error_list []

Detailed Description

Error report functions ... at this point.

This module implements functions to obtain an human-readable string explain the meaning of each cd_error code

Author:
Ă€ngel Perles
Date:
26/04/2011

Definition in file cd_error.c.


Function Documentation

const char* cd_ErrorStr ( uint8_t  error_code  ) 

Returns an human-readable string based on the given cd_error code.

Parameters:
error_code value to be translated to the equivalent string
Returns:
pointer to an standard NULL-terminated C string explain the meaning of the code

Definition at line 41 of file cd_error.c.


Variable Documentation

struct cd_error_list_t cd_error_list[]
Initial value:
 {
    {CD_Error_NoError, "No error."},
    {CD_Error_DAQBadSubdevice, "The specified subdevice number is not correct"},
    {CD_Error_BadValue, "The specified parameter value is not correct."},
    {CD_Error_DAQBadLine,"The specified input/output line is not correct or does not exist."},
    {CD_Error_UnableToOpenLink," Error configuring the master-slave link"},
    {CD_Error_LinkNotReady, "The loink is not ready"},
    {CD_Error_Timeout,"Timeout waiting response"},


    {CD_Error_UnimplementedError, "Error not implemented yet or erroneous code"} 
}

Definition at line 20 of file cd_error.c.

 All Data Structures Files Functions
Generated on Wed Apr 27 16:00:50 2011 for CheapDAQ by  doxygen 1.6.3