/*
 * Copyright 2015 Mario Richter, Peter Stephan
 * This file is part of NeMo.
 *
 * NeMo is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * NeMo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with NeMo.  If not, see <http://www.gnu.org/licenses/>.
 */

/*!
 * \file err.c
 * \ingroup	err
 * \brief	Errorhandling - Headerfile
 */ 

#ifndef ERR_H_
#define ERR_H_


// --------------------------------------
// Defines

#define MAX_ERRNO                 7             //!< Max. Anzahl an Fehlermeldungen
#define ERRMSG_LEN                20            //!< Max. Länge der Fehlermeldungen

#define ERRNO_OK                  0             //!< Fehlerstatus: OK (kein Fehler)
#define ERRNO_UNKNOWN_CMD         1             //!< Fehlerstatus: unbekannter Befehl
#define ERRNO_BAD_PARAM           2             //!< Fehlerstatus: falscher Parameter
#define ERRNO_TOO_MUCH_PARAM      3             //!< Fehlerstatus: zu viele Parameter
#define ERRNO_I2C_EEPROM_WRITE    4             //!< Fehlerstatus: Fehler beim Schreiben ins I2C-EEPROM
#define ERRNO_NO_LIGHT_PROG       5             //!< Fehlerstatus: Kein Lichtprogramm an angegebener Adresse
#define ERRNO_NO_PROG_ACTIVE      6             //!< Fehlerstatus: Kein Lichtprogramm aktiv

// --------------------------------------
// Funktionsdeklarationen

void errMsg(uint8_t ind, uint8_t errno);


#endif /* ERR_H_ */
