/**********************************************************************
 * Project: UBus Zentrale Platform
 * Delta Sensorik GmbH, Union Instruments GmbH
 * (c) Copyright  2010
 * All rights reserved
 **********************************************************************/
 /**
 * @file          errorDefines.h
 * @author        Purkait
 * @date          01.09.2010
 *
 * Header file with error defines
 */
  #ifndef __ERRORDEFS_H
  #define __ERRORDEFS_H


/*---------------------------------------------------------------------
 *    INCLUDES
 *-------------------------------------------------------------------*/

/*---------------------------------------------------------------------
 *    MACROS / DEFINES
 *-------------------------------------------------------------------*/
  #define _ERROR_NO_ERROR                           0x0000


  //******************************************************
  //STATEMACHINE ERRORS
  #define _ERROR_STATEMACH_EVENT_OVERFLOW           0x0100        //--> _EVENT OVERFLOW_
  #define _ERROR_STATEMACH_STATE_OVERFLOW           0x0101        //--> _STATE OVERFLOW_
  #define _ERROR_STATEMACH_TIMER_LOAD_OVERFLOW      0x0102        //--> _TIMER LOAD\OVERFLOW_
  #define _ERROR_STATEMACH_WRONG_DEV_CONFIG_IS_SET  0x0103        //--> _WRONG DEVICE\CFG. IS SET_
  //Fatal errors
  #define _ERROR_STATEMACH_FATAL_ERRLIST_FULL       0x0180        //--> _ERROR LIST FULL_


  //******************************************************
  //COMM ERRORS
  #define _ERROR_COMM_OPEN_PORT                     0x0200        //--> _COMM OPEN PORT_
  #define _ERROR_COMM_CLR_RW_BUFFERS                0x0201        //--> _COMM CLEAR RW\BUFFERS_
  #define _ERROR_COMM_SEND_BYTES                    0x0202        //--> _COMM SEND DATA_
  #define _ERROR_COMM_REC_TIMEOUT                   0x0203        //--> _COMM TIMEOUT\RECEIVE_
  #define _ERROR_COMM_CLOSE_PORT                    0x0204        //--> _COMM CLOSE PORT_

  #define _ERROR_COMM_CMD_NOT_FOUND                 0x0210        //--> _COMM CMD NOT\FOUND_
  #define _ERROR_COMM_CMD_TIMEOUT_REC_HEADER        0x0211        //--> _COMM CMD TIMEOUT\REC. HEADER_
  #define _ERROR_COMM_CMD_TIMEOUT_REC_TAIL          0x0212        //--> _COMM CMD TIMEOUT\REC. TAIL_
  #define _ERROR_COMM_CMD_CRC16_FAILED              0x0213        //--> _COMM CMD CRC16\FAILED_
  #define _ERROR_COMM_CMD_WRONG_ADDRESS             0x0214        //--> _COMM CMD WRONG\ADDRESS_
  #define _ERROR_COMM_CMD_WRONG_LENGTH              0x0215        //--> _COMM CMD WRONG\LENGTH_
  #define _ERROR_COMM_CMD_SEND_DATA                 0x0216        //--> _COMM CMD SEND\DATA_
  #define _ERROR_COMM_CMD_CLR_RW_BUFFERS            0x0217        //--> _COMM CMD CLEAR\RW BUFFERS_
  #define _ERROR_COMM_NO_COM_PORT_OPEN              0x0218        //--> _COMM NO COM PORT\OPEN_
  #define _ERROR_COMM_BUFFER_SIZE                   0x0219        //--> _COMM CMD BUFFER\SIZE_
  #define _ERROR_COMM_CMD_TIMEOUT_REC               0x021A        //--> _COMM CMD TIMEOUT\RECEIVE_
  #define _ERROR_COMM_CMD_TIMEOUT_REC_HEADER_PART2  0x021B        //--> _COMM CMD TIMEOUT\HEADER PRT.2_
  //Errors reading from or writing to eeprom
  #define _ERROR_COMM_SAVEDATA_ERROR_OLD_COPY_FCTN  0x0000        //--> _COMM SAVE DATA\OLD COPY FCTN._
  #define _ERROR_COMM_SAVEDATA_READ_NOT_OK          0x0221        //--> _COMM SAVE DATA\READ NOT OK_
  #define _ERROR_COMM_SAVEDATA_READ_NOT_CONNECTED   0x0222        //--> _COMM SAVE DATA\READ NOT CON._
  #define _ERROR_COMM_SAVEDATA_READ_NOT_AVAILABLE   0x0223        //--> _COMM SAVE DATA\READ NOT AVLB._
  #define _ERROR_COMM_SAVEDATA_READ_OUT_OF_RANGE    0x0224        //--> _COMM SAVE DATA\READ RANGE_
  #define _ERROR_COMM_SAVEDATA_WRITE_NOT_OK         0x0225        //--> _COMM SAVE DATA\WRITE NOT OK_
  #define _ERROR_COMM_SAVEDATA_WRITE_NOT_CONNECTED  0x0226        //--> _COMM SAVE DATA\WRITE NOT CON._
  #define _ERROR_COMM_SAVEDATA_WRITE_NOT_AVAILABLE  0x0227        //--> _COMM SAVE DATA\WRITE NOT AVLB._
  #define _ERROR_COMM_SAVEDATA_WRITE_OUT_OF_RANGE   0x0228        //--> _COMM SAVE DATA\WRITE RANGE_
  #define _ERROR_COMM_SAVEDATA_EEPROM_NOTDEF        0x0229        //--> _COMM SAVE DATA\EEPROM NOT DEF._
  #define _ERROR_COMM_SAVEDATA_PTR_NOT_SET          0x022A        //--> _COMM SAVE DATA\PTR. NOT SET_
  #define _ERROR_COMM_SAVEDATA_BUF_TOO_LARGE        0x022B        //--> _COMM SAVE DATA\BUF. TOO LARGE_
  #define _ERROR_COMM_SAVEDATA_NO_DATA              0x022C        //--> _COMM SAVE DATA\NO DATA_
  #define _ERROR_COMM_SAVEDATA_EEPROM_NOT_FOUND     0x022D        //--> _COMM SAVE DATA\EEPROM NOT FND._


  //Communication errors - not fatal anymore since version 1.03R23
  #define _ERROR_COMM_CMD_TIMEOUT_REC_ECHO          0x0230        //--> _COMM CMD TIMEOUT\RECEIVE ECHO_    // no bus connected  (PC)
  #define _ERROR_COMM_TIMEOUT_REC_NO_ANSWER         0x0231        //--> _COMM TIMEOUT\NO ANSWER_           // no communication detected
  #define _ERROR_COMM_SEND_BUFFER_OVERFLOW          0x0232        //--> _COMM SEND\BUFFER OVERFLOW_
  #define _ERROR_COMM_REC_BUFFER_OVERFLOW           0x0233        //--> _COMM RECEIVE\BUFFER OVERFLOW_
  
  //Fatal errors
  #define _ERROR_COMM_SLAVE_LOST_IR1                0x0280        //--> __COMM_FATAL\SLAVE_LOST_IR1       //slave is lost, slave no, according to GLOB_LANG_slaveNames and "slvAdrLst[]"
  #define _ERROR_COMM_SLAVE_LOST_EC1                0x0281        //--> __COMM_FATAL\SLAVE_LOST_EC1
  #define _ERROR_COMM_SLAVE_LOST_IO                 0x0282        //--> __COMM_FATAL\SLAVE_LOST_IO
  #define _ERROR_COMM_SLAVE_LOST_EC2                0x0283        //--> __COMM_FATAL\SLAVE_LOST_EC2
  #define _ERROR_COMM_SLAVE_LOST_PAROX              0x0284        //--> __COMM_FATAL\SLAVE_LOST_PAROX
  #define _ERROR_COMM_SLAVE_LOST_SG                 0x0285        //--> __COMM_FATAL\SLAVE_LOST_SG
  #define _ERROR_COMM_SLAVE_LOST_FLOW               0x0286        //--> __COMM_FATAL\SLAVE_LOST_FLOW
  #define _ERROR_COMM_SLAVE_LOST_IR2                0x0287        //--> __COMM_FATAL\SLAVE_LOST_IR2
  #define _ERROR_COMM_SLAVE_LOST_L_OX               0x0288        //--> __COMM_FATAL\SLAVE_LOST_L-OX
  #define _ERROR_COMM_SLAVE_LOST_B_IO               0x0289        //--> __COMM_FATAL\SLAVE_LOST_B-IO

  //******************************************************
  //SENSOR ERRORS
  #define _ERROR_SENSOR_CMD_BUFFER_FULL             0x0300     //--> _SENS CMD BUF\FULL_
  #define _ERROR_SENSOR_UNKNOWN_DATA_TYPE           0x0301     //--> _SENS UNKNOWN\DATA TYPE_
  #define _ERROR_SENSOR_DIVISION_BY_ZERO            0x0302     //--> _SENS DIVISION\BY ZERO_
  #define _ERROR_SENSOR_UNKNOWN_COMMAND             0x0303     //--> _SENS UNKNOWN\COMMAND_
  #define _ERROR_SENSOR_CMD_WRONG_TYPE              0x0304     //--> _SENS CMD WRONG\TYPE_
  #define _ERROR_SENSOR_CAL_STATUS_ZERO_IR1         0x0305     //--> _SENS CAL STATUS\ZERO IR1_          ///* @todo müssen wieder in Code implementiert werden
  #define _ERROR_SENSOR_CAL_STATUS_SPAN_IR1         0x0306     //--> _SENS CAL STATUS\SPAN IR1_          ///* @todo müssen wieder in Code implementiert werden
  #define _ERROR_SENSOR_CAL_STATUS_ZERO_IR2         0x0307     //--> _SENS CAL STATUS\ZERO IR2_          ///* @todo müssen wieder in Code implementiert werden
  #define _ERROR_SENSOR_CAL_STATUS_SPAN_IR2         0x0308     //--> _SENS CAL STATUS\SPAN IR2_          ///* @todo müssen wieder in Code implementiert werden
  #define _ERROR_SENSOR_CAL_STATUS_ZERO_EC1         0x0309     //--> _SENS CAL STATUS\ZERO EC1_          ///* @todo müssen wieder in Code implementiert werden
  #define _ERROR_SENSOR_CAL_STATUS_SPAN_EC1         0x030A     //--> _SENS CAL STATUS\SPAN EC1_          ///* @todo müssen wieder in Code implementiert werden
  #define _ERROR_SENSOR_CAL_STATUS_ZERO_EC2         0x030B     //--> _SENS CAL STATUS\ZERO EC2_          ///* @todo müssen wieder in Code implementiert werden
  #define _ERROR_SENSOR_CAL_STATUS_SPAN_EC2         0x030C     //--> _SENS CAL STATUS\SPAN EC2_          ///* @todo müssen wieder in Code implementiert werden
  #define _ERROR_SENSOR_EC_PRESSURE_AIR             0x030D     //--> _SENS EC PRESSURE\AIR_
  #define _ERROR_SENSOR_EC_PRESSURE_GAS             0x030E     //--> _SENS EC PRESSURE\GAS_
  #define _ERROR_SENSOR_EC3_PRESSURE_AIR            0x030F     //--> _SENS EC3 PRESSURE\AIR_
  #define _ERROR_SENSOR_EC3_PRESSURE_GAS            0x0310     //--> _SENS EC3 PRESSURE\GAS_
  #define _ERROR_SENSOR_EC4_PRESSURE_AIR            0x0311     //--> _SENS EC4 PRESSURE\AIR_
  #define _ERROR_SENSOR_EC4_PRESSURE_GAS            0x0312     //--> _SENS EC4 PRESSURE\GAS_
  #define _ERROR_SENSOR_CALC_VAL_NOT_DEF            0x0313     //--> _SENS CALC. VALUE\NOT DEFINED_
  #define _ERROR_SENSOR_FATAL_CHNL_ERR_NOT_DEF      0x0314     //--> _SENS FATAL CHNL.\ERR NOT DEF._
  #define _ERROR_SENSOR_ABORT_MEAS_NOT_DEF          0x0315     //--> _SENS ABORT MEAS.\NOT DEF._
  #define _ERROR_SENSOR_RESET_FACTORY_CALIB_NOT_DEF 0x0316     //--> _SENS FACTORY\CALIB. NOT DEF._
  #define _ERROR_SENSOR_IR_CALIB_NOT_READ           0x0317     //--> _SENS IR CALIB.\NOT READ_
  #define _ERROR_SENSOR_IR_PRESSURE_PROCESS         0x0318     //--> _SENS IR PRESS.\PROCESS GAS_
  #define _ERROR_SENSOR_IR_PRESSURE_CALIB           0x0319     //--> _SENS IR PRESS.\CALIB GAS_
  #define _ERROR_SENSOR_SET_FACTORY_CALIB_NOT_DEF   0x031A     //--> _SENS SET FACT.\CALIB NOT DEF._
  #define _ERROR_SENSOR_NO_TYPE_DEF                 0x031B     //--> _SENS TYPE NOT\DEFINED_
  #define _ERROR_SENSOR_GET_SERIAL_NUMBER_NOT_DEF   0x031C     //--> _SENS SER. NO G\NOT DEFINED_
  #define _ERROR_SENSOR_SET_SERIAL_NUMBER_NOT_DEF   0x031D     //--> _SENS SER. NO S\NOT DEFINED_
  #define _ERROR_SENSOR_COPY_CALIB_DATA_BUF_SIZE    0x031E     //--> _SENS COPY CALIB\BUFF. SIZE_
  #define _ERROR_SENSOR_COPY_CALIB_NO_DATA          0x031F     //--> _SENS COPY CALIB\NO DATA_
  #define _ERROR_SENSOR_PHASE_START_NOT_DEF         0x0320     //--> _SENS PHASE STR\NOT DEFINED_
  #define _ERROR_SENSOR_PHASE_FINISH_NOT_DEF        0x0321     //--> _SENS PHASE FIN\NOT DEFINED_
  #define _ERROR_SENSOR_PHASE_ABORT_NOT_DEF         0x0322     //--> _SENS PHASE ABO\NOT DEFINED_
  #define _ERROR_SENSOR_SET_CALIB_DATA_ERR_ND       0x0323     //--> _SENS SET CALIB\NOT DEFINED_
  #define _ERROR_SENSOR_SET_CALIB_DATA_ERR_SIZE     0x0324     //--> _SENS SET CALIB\ERR SIZE_
  #define _ERROR_SENSOR_SET_CALIB_DATA_ERR_CHNL     0x0325     //--> _SENS SET CALIB\ERR CHNL_
  #define _ERROR_SENSOR_SAVE_CALIB_NOT_DEF          0x0326     //--> _SENS SAVE CALIB\NOT DEFINED_
  #define _ERROR_SENSOR_READ_CALIB_NOT_DEF          0x0327     //--> _SENS READ CALIB\NOT DEFINED_
  #define _ERROR_SENSOR_SET_FACT_CALIB_ERR_CHNL     0x0328     //--> _SENS SET CALIB\FACT. ERROR_
  #define _ERROR_SENSOR_PRESS_NOT_AVAILABLE         0x0329     //--> _SENS PRESS NOT\AVAILABLE_
  #define _ERROR_SENSOR_EC_PULSE_DIV_ZERO1          0x032A     //--> _SENS EC PULSE\DIV. ZERO 1_
  #define _ERROR_SENSOR_EC_PULSE_DIV_ZERO2          0x032B     //--> _SENS EC PULSE\DIV. ZERO 2_
  #define _ERROR_SENSOR_EC_PULSE_DIV_ZERO3          0x032C     //--> _SENS EC PULSE\DIV. ZERO 3_
  #define _ERROR_SENSOR_EC_PULSE_FACT_MIN           0x032D     //--> _SENS EC PULSE\FACTOR MAX_
  #define _ERROR_SENSOR_EC_PULSE_FACT_MAX           0x032E     //--> _SENS EC PULSE\FACTOR MIN_
  #define _ERROR_SENSOR_SET_SERIAL_NO_ERR_CHNL      0x032F     //--> _SENS SET SERIAL\NO. (CHNL)_
  #define _ERROR_SENSOR_ABORT_CAL_FLOW_AIR          0x0330     //--> _SENS ABORT CAL\AIR PRESS_
  #define _ERROR_SENSOR_ABORT_CAL_FLOW_GAS          0x0331     //--> _SENS ABORT CAL\GAS PRESS_
  #define _ERROR_SENSOR_RESET_CNT_FUNC_MISSING      0x0332     //--> _SENS RESET CNT.\FUNC. MISSING_
	// SENSOR ERRORS for NG introduced by A.Tkalcec (28.02.2013)
	#define _ERROR_SENSOR_EXT_VALUE_NOT_RECEIVED		  0x0333		 //--> _SENS IR NO\EXT VALUE_
  #define _ERROR_SENSOR_PRESSURE_GAS_CHNL           0x0334     //--> _SENS PRESS GAS\CHNL _
  //reserved for 10 channels                        0x033E is next free error
  #define _ERROR_SENSOR_ABORT_MEASURE_OVERLOAD      0x033E   //--> _SENS OVERLOAD\ERROR_
  //reserved for 10 channels                        0x0348 is next free error
  
  
  //Fatal errors
  #define _ERROR_SENSOR_GLOB_ERROR                  0x0380     //--> _SENS GLOB ERROR_
  #define _ERROR_SENSOR_GLOB_ERROR_IO               0x0381     //--> _SENS GLOB\ERROR IO_
  #define _ERROR_SENSOR_GLOB_ERROR_IR               0x0382     //--> _SENS GLOB\ERROR IR_
  #define _ERROR_SENSOR_GLOB_ERROR_EC               0x0383     //--> _SENS GLOB\ERROR EC_
  #define _ERROR_SENSOR_CHNL_ERROR_IR1              0x0384     //--> _SENS CHNL.\ERROR IR1_
  #define _ERROR_SENSOR_CHNL_ERROR_IR2              0x0385     //--> _SENS CHNL.\ERROR IR2_
  #define _ERROR_SENSOR_CHNL_ERROR_EC1              0x0386     //--> _SENS CHNL.\ERROR EC1_
  #define _ERROR_SENSOR_CHNL_ERROR_EC2              0x0387     //--> _SENS CHNL.\ERROR EC2_
  #define _ERROR_SENSOR_GLOB_ERROR_EC3              0x0388     //--> _SENS GLOB\ERROR EC3_
  #define _ERROR_SENSOR_GLOB_ERROR_EC4              0x0389     //--> _SENS GLOB\ERROR EC4_
  #define _ERROR_SENSOR_ANALOG_OUTPUT_NOT_VALID     0x038A     //--> _SENS ANLG. OUTPUT\NOT VALID_
  #define _ERROR_SENSOR_EC_CALIB_PTR_NOT_SET        0x038B     //--> _SENS EC CALIB\PTR NOT SET_
  #define _ERROR_SENSOR_EC_CALIB_ABORT_ZERO_FATAL   0x038C     //--> _SENS EC CALIB\ABORT ZERO_
  #define _ERROR_SENSOR_EC_CALIB_ABORT_SPAN_FATAL   0x038D     //--> _SENS EC CALIB\ABORT SPAN_
  #define _ERROR_SENSOR_EC_CALIB_ABORT_MIXER_FATAL  0x038E     //--> _SENS EC CALIB\ABORT MIXER_
  #define _ERROR_SENSOR_EC_CALIB_ABORT_NO_DEF_FATAL 0x038F     //--> _SENS EC CALIB\ABORT NO DEF._
  #define _ERROR_SENSOR_NO_SLAVE_FOUND              0x0390     //--> _SENS NO SLAVE\FOUND_
  #define _ERROR_SENSOR_IR_BUFFER_OVERFLOW          0x0391     //--> _SENS IR BUFFER\OVERFLOW_
  #define _ERROR_SENSOR_IR_OLD_CALIBRATION_VERSION  0x0392      //--> _SENS IR CAL DATA\INVALID_
  #define _ERROR_SENSOR_EC_ERR_CALIB_MIXER          0x0393      //--> _SENS MIX CAL DATA\INVALID_
  #define _ERROR_SENSOR_PAROX_OLD_CKALIBRATION_VERSION 0x0394   //--> _SENS PAROX CAL DATA\INVALID_
  #define _ERROR_SENSOR_PAROX_CRC                      0x0395   //--> _SENS PAROX CAL DATA\CRC ERROR_
  #define _ERROR_SENSOR_SG_OLD_CKALIBRATION_VERSION    0x0396   //--> _SENS SG CAL DATA\INVALID_
  #define _ERROR_SENSOR_SG_CRC                         0x0397   //--> _SENS SG CAL DATA\CRC ERROR_
  #define _ERROR_SENSOR_EC_ERR_CALIB_SENS_EC1          0x0398   //--> _SENS EC1 CAL DATA\ERROR - O2_
  #define _ERROR_SENSOR_EC_ERR_CALIB_SENS_EC2          0x0399   //--> _SENS EC2 CAL DATA\ERROR - H2S H2_
  #define _ERROR_SENSOR_CHNL_ERROR_IR3                 0x039A   //--> _SENS CHNL.\ERROR IR2_
  #define _ERROR_SENSOR_CHNL_ERROR_IR4                 0x039B   //--> _SENS CHNL.\ERROR IR3_
  #define _ERROR_SENSOR_NO_PURGE_FLOW_INCA8000         0x039C   //--> _SENS PURGE\FLOW 8000_
  

  //******************************************************
  //COMMAND LIST, TASK REQUEST LIST ERRORS AND OTHER OVERFLOWS
  #define _ERROR_REQLIST_TASK_NOT_DEFINED           0x0400      //--> _REQUEST LIST\TASK NOT DEF._

  #define _ERROR_CLIST_OVERFLOW                     0x0480      //--> _CLIST OVERFLOW_
  #define _ERROR_REQLIST_OVERFLOW                   0x0481      //--> _REQUEST LIST\OVERFLOW_
  #define _ERROR_RESET_CALIB_SENSOR_OVERFLOW        0x0482      //--> _RESET CALIB.\LIST OVERFLOW_
  #define _ERROR_DYN_STRING_LIST_OVERFLOW           0x0483      //--> _DYN STR.\LIST OVERFLOW_


  //******************************************************
  //MENU ERRORS
  #define _ERROR_MENU_OBJECT_OVERFLOW               0x0500       //--> _MENU OBJECT\OVERFLOW_
  #define _ERROR_MENU_VALUE_NULL_POINTER            0x0501       //--> _MENU VALUE NULL\POINTER_
  #define _ERROR_MENU_VALUE_TYP_UNKNOWN             0x0502       //--> _MENU TYP UNKNOWN_
  #define _ERROR_MENU_PARSE_NUM_WRONG_ORDER         0x0503       //--> _MENU PARSE NUM\WRONG ORDER_
  #define _ERROR_MENU_PARSE_NUM_TOO_MANY_DOTS       0x0504       //--> _MENU PARSE NUM\TOO MANY DOTS_
  #define _ERROR_MENU_PARSE_NUM_CONVERSION          0x0505       //--> _MENU PARSE NUM\CONVERSION_
  #define _ERROR_MENU_ADD_SAVE_TASK                 0x0506       //--> _MENU ADD SAVE\TASK_
  #define _ERROR_MENU_ADD_SEND_CMD_COMM_TASK        0x0507       //--> _MENU ADD SEND\COMM COMMAND_
  #define _ERROR_MENU_ADD_WAIT_TASK                 0x0508       //--> _MENU ADD WAIT\TASK_
  #define _ERROR_MENU_MAX_INFO_ELEMENTS             0x0509       //--> _MENU MAX INFO\ELEMENTS_
  #define _ERROR_MENU_ADD_SEND_CMD_TASK             0x050A       //--> _MENU ADD SEND\COMMAND_


  //******************************************************
  //STORAGE ERRORS
  #define _ERROR_STORAGE_INIT_ERROR                 0x0600       //--> _STORE INIT_
  #define _ERROR_STORAGE_OPEN_FILE_FOR_READING      0x0601       //--> _STORE OPEN FILE\FOR READING_
  #define _ERROR_STORAGE_OPEN_FILE_FOR_WRITING      0x0602       //--> _STORE OPEN FILE\FOR WRITING_
  #define _ERROR_STORAGE_ALLOCATE_MEMORY            0x0603       //--> _STORE ALLOCATE\MEMORY_
  #define _ERROR_STORAGE_BUFFER_NOT_EMPTY           0x0604       //--> _STORE BUFFER\NOT EMPTY_
  #define _ERROR_STORAGE_BUFFER_TOO_SMALL           0x0605       //--> _STORE BUFFER\TOO SMALL_
  #define _ERROR_STORAGE_PTR_SAVE_PARAMS            0x0606       //--> _STORE PTR. SAVE\PARAMETERS_
  #define _ERROR_STORAGE_TYPE_NOT_DEF               0x0607       //--> _STORE TYPE NOT\DEFINED_
  #define _ERROR_STORAGE_NO_STORED_DATA             0x0608       //--> _STORE NO STORED\DATA_


  //******************************************************
  //SD CARD ERRORS
  #define _ERROR_SDCARD_POWERON_CMD0                0x0700     //--> _SDCARD POWER ON\CMD0_
  #define _ERROR_SDCARD_INITIALIZE_CMD1             0x0701    //--> _SDCARD INITIALIZE\CMD1_
  #define _ERROR_SDCARD_READSECTOR_SEND_CMD         0x0702     //--> _SDCARD READ SECT.\SEND CMD_
  #define _ERROR_SDCARD_READSECTOR_STARTBYTE        0x0703     //--> _SDCARD READ SECT.\START BYTE_
  #define _ERROR_SDCARD_WRITESECTOR_SEND_CMD        0x0704     //--> _SDCARD WRITE SECT\SEND CMD_
  #define _ERROR_SDCARD_WRITESECTOR_BUSY            0x0705     //--> _SDCARD WRITE SECT\BUSY_

  #define _ERROR_SDCARD_FILEIO_MOUNT                0x0710    //--> _SDCARD FILE IO\MOUNT_    //leave room for file I/O result
  #define _ERROR_SDCARD_FILEIO_OPEN                 0x0720    //--> _SDCARD FILE IO\OPEN_     //leave room for file I/O result
  #define _ERROR_SDCARD_FILEIO_READ                 0x0730    //--> _SDCARD FILE IO\READ_     //leave room for file I/O result
  #define _ERROR_SDCARD_FILEIO_WRITE                0x0740    //--> _SDCARD FILE IO\WRITE_    //leave room for file I/O result
  #define _ERROR_SDCARD_FILEIO_SEEK                 0x0750    //--> _SDCARD FILE IO\SEEK_     //leave room for file I/O result
  #define _ERROR_SDCARD_FILEIO_UNLINK               0x0760    //--> _SDCARD FILE IO\UNLINK_   //leave room for file I/O result
  #define _ERROR_SDCARD_FILEIO_CLOSE                0x0770    //--> _SDCARD FILE IO\CLOSE_    //leave room for file I/O result


  //******************************************************
  //HBus errors
  #define _ERROR_HBUS_CRC                           0x0000    //--> _HBUS CRC_    0x0801
  #define _ERROR_HBUS_UNKNOWN_COMMAND               0x0802    //--> _HBUS UNKNOWN\COMMAND_


  //******************************************************
  //INCAMEM errors
  #define _ERROR_INCAMEM_NO_OF_CHNL_OVERFLOW        0x0900    //--> _INCAMEM CHANNEL\OVERFLOW_
  #define _ERROR_INCAMEM_REL_ADDRESS_OVERFLOW       0x0901    //--> _INCAMEM RELATIVE\ADR. OVERFLOW_
  #define _ERROR_INCAMEM_RAM_MEM_DATA_NOT_SET       0x0902    //--> _INCAMEM RAM\DATA NOT SET_
  #define _ERROR_INCAMEM_CHNL_NOT_ACTIVATED         0x0903    //--> _INCAMEM CHNL\NOT ACTIVE
  #define _ERROR_INCAMEM_MEASUREMENT_NOT_AVAILABLE  0x0904    //--> _INCAMEM MEAS.\NOT AVAILABLE


  //******************************************************
  //Messages / EVENTS
  #define _MSG_SYSTEM_START                         0x5000    //-->_EVENT\BOOTING SYSTEM_
  #define _MSG_SYSTEM_ENTER_WARMUP                  0x5001    //-->_EVENT\ENTER WARMUP_
  #define _MSG_SYSTEM_TIME_DS_FORWARD               0x5002    //-->_EVENT\TIME FORWARD_
  #define _MSG_SYSTEM_TIME_DS_BACKWARD              0x5003    //-->_EVENT\TIME BACKWARD_
  #define _MSG_SYSTEM_ENTER_ERROR                   0x5004    //-->_EVENT\ENTER ERROR_
  #define _MSG_SYSTEM_PURGE_CALIB_STARTED           0x5005    //-->_EVENT PURGE\CALIB STARTED_
  #define _MSG_SYSTEM_GAS1_CALIB_STARTED            0x5006    //-->_EVENT GAS 1\CALIB STARTED_
  #define _MSG_SYSTEM_GAS2_CALIB_STARTED            0x5007    //-->_EVENT GAS 2\CALIB STARTED_
  #define _MSG_SYSTEM_WATCHDOG_RESTART              0x5008    //-->_WATCHDOG\RESTART_
  #define _MSG_SYSTEM_ERROR_AUTO_RESTART            0x5009    //-->_ERROR AUTO\RESTART_
  #define _MSG_SYSTEM_ABORT_CAL_SYSTEM              0x500A    //-->_MESSAGE ABORT\CAL SYSTEM_
  #define _MSG_SYSTEM_ERROR_CAL                     0x500B    //-->_MESSAGE ERROR\CAL_
  #define _MSG_SYSTEM_ERROR_TIME_CAL                0x500C    //-->_MESSAGE ERROR\TIME CAL_
  #define _MSG_SYSTEM_ABORT_CAL_USER                0x500D    //-->_MESSAGE ABORT\CAL USER_
  #define _MSG_SYSTEM_CLEARED_MSG_USER              0x500E    //-->_MESSAGE CLEAR\USER_
  #define _MSG_SYSTEM_CHECK_PERFORMED               0x500F    //-->_MESSAGE\SYSTEM CHECK_


/*---------------------------------------------------------------------
 *    GLOBAL VARIABLES (external definitions)
 *-------------------------------------------------------------------*/

#endif
