xyControl  0.1
Quadrotor Flight Controller on AVR Basis
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Macros | Enumerations | Functions
error.h File Reference

Global listing of different error conditions. More...

Go to the source code of this file.

Macros

#define CHECKERROR(x)   if(x!=SUCCESS){return x;}
 Check an Error Code. More...
 
#define REPORTERROR(x)
 Report an error, if it occured. More...
 

Enumerations

enum  Error {
  SUCCESS = 0, TWI_NO_ANSWER, TWI_WRITE_ERROR, MALLOC_FAIL,
  ERROR, ARGUMENT_ERROR
}
 Error Conditions. More...
 

Functions

char * getErrorString (Error e)
 Returns a human-readable error description. More...
 

Detailed Description

Global listing of different error conditions.

Can be returned to signalise error or success. Also allows to print human-readable error descriptions.

Definition in file error.h.