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

Global listing of different error conditions. More...

#include <avr/io.h>
#include <stdint.h>
#include <stdlib.h>
#include <avr/pgmspace.h>
#include <error.h>

Go to the source code of this file.

Functions

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

Variables

char PROGMEM error0 [] = "Success"
 String for SUCCESS. More...
 
char PROGMEM error1 [] = "TWI doesn't answer"
 String for TWI_NO_ANSWER. More...
 
char PROGMEM error2 [] = "TWI could not write"
 String for TWI_WRITE_ERROR. More...
 
char PROGMEM error3 [] = "Not enough memory"
 String for MALLOC_FAIL. More...
 
char PROGMEM error4 [] = "General Error"
 String for ERROR. More...
 
char PROGMEM error5 [] = "Argument Error"
 String for ARGUMENT_ERROR. More...
 
PGM_P PROGMEM errorTable []
 Array of all error descriptions in Flash Memory. 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.c.

Variable Documentation

char PROGMEM error0[] = "Success"

String for SUCCESS.

Definition at line 43 of file error.c.

char PROGMEM error1[] = "TWI doesn't answer"

String for TWI_NO_ANSWER.

Definition at line 44 of file error.c.

char PROGMEM error2[] = "TWI could not write"

String for TWI_WRITE_ERROR.

Definition at line 45 of file error.c.

char PROGMEM error3[] = "Not enough memory"

String for MALLOC_FAIL.

Definition at line 46 of file error.c.

char PROGMEM error4[] = "General Error"

String for ERROR.

Definition at line 47 of file error.c.

char PROGMEM error5[] = "Argument Error"

String for ARGUMENT_ERROR.

Definition at line 48 of file error.c.

PGM_P PROGMEM errorTable[]
Initial value:

Array of all error descriptions in Flash Memory.

Definition at line 51 of file error.c.

Referenced by getErrorString().