ev3duder  0.3.0
EV3 Downloader/Uploader
error.h File Reference

Error enumerations and decriptions. More...

#include "defs.h"

Go to the source code of this file.

Macros

#define EXTERN   extern
 For avoiding the need to separately define and declare stuff. More...
 

Enumerations

enum  ERR {
  ERR_UNK = 0, ERR_ARG, ERR_IO, ERR_FTOOBIG,
  ERR_NOMEM, ERR_COMM, ERR_VM, ERR_SYS,
  ERR_END
}
 Errors returnable from main. More...
 
enum  { VM_OK = 0x03, VM_ERROR = 0x05 }
 Statuses from VM. More...
 
enum  {
  SUCCESS = 0, UNKNOWN_HANDLE, HANDLE_NOT_READY, CORRUPT_FILE,
  NO_HANDLES_AVAILABLE, NO_PERMISSION, ILLEGAL_PATH, FILE_EXITS,
  END_OF_FILE, SIZE_ERROR, UNKNOWN_ERROR, ILLEGAL_FILENAME,
  ILLEGAL_CONNECTION, ERRORS_END
}
 

Variables

EXTERN const char * errmsg
 global variable for last error message More...
 
EXTERN const char *const ev3_error_msgs [ERRORS_END+1]
 

Detailed Description

Error enumerations and decriptions.

Author
Ahmad Fatoum

Definition in file error.h.

Macro Definition Documentation

#define EXTERN   extern

For avoiding the need to separately define and declare stuff.

Definition at line 15 of file error.h.

Enumeration Type Documentation

anonymous enum

Statuses from VM.

Enumerator
VM_OK 
VM_ERROR 

Definition at line 22 of file error.h.

anonymous enum

Errors returned from VM

See also
https://github.com/mindboards/ev3sources/blob/master/lms2012/c_com/source/c_com.h
Enumerator
SUCCESS 
UNKNOWN_HANDLE 
HANDLE_NOT_READY 
CORRUPT_FILE 
NO_HANDLES_AVAILABLE 
NO_PERMISSION 
ILLEGAL_PATH 
FILE_EXITS 
END_OF_FILE 
SIZE_ERROR 
UNKNOWN_ERROR 
ILLEGAL_FILENAME 
ILLEGAL_CONNECTION 
ERRORS_END 

Definition at line 31 of file error.h.

enum ERR

Errors returnable from main.

Enumerator
ERR_UNK 
ERR_ARG 
ERR_IO 
ERR_FTOOBIG 
ERR_NOMEM 
ERR_COMM 
ERR_VM 
ERR_SYS 
ERR_END 

Definition at line 20 of file error.h.

Variable Documentation

EXTERN const char* errmsg

global variable for last error message

Definition at line 25 of file error.h.

EXTERN const char* const ev3_error_msgs[ERRORS_END+1]

ev3_error description strings, found by trial and error

See also
https://github.com/mindboards/ev3sources/blob/master/lms2012/c_com/source/c_com.h

Definition at line 71 of file error.h.