Rev 2248 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/*****************************************************************************************************************************
* File: eeprom.h
* Purpose: header of eeprom.c
*****************************************************************************************************************************/
#ifndef _EEPROM_H
#define _EEPROM_H
#define EE_DATENREVISION 80 // Parameter fürs Koptertool; entspricht den EEPROM-Daten von FlightCtrl Version V0.76g
#define MIXER_REVISION 1 // wird angepasst, wenn sich die Mixer-Daten geändert haben
#define EEPROM_ADR_VALID 1 // für EEPROM Datenrevision = 80 bei V0.76g
#define EEPROM_ADR_ACTIVE_SET 2 // für den aktiven Parametersatz 3=Beginner 2=Normal 1=Sport
#define EEPROM_ADR_LAST_OFFSET 3 // Luftdruck Offset siehe analog.c Zeile 44
#define EEPROM_ADR_ACC_NICK 4
#define EEPROM_ADR_ACC_ROLL 6
#define EEPROM_ADR_ACC_Z 8
#define EEPROM_ADR_MINUTES 10 // FlugMinuten Gesamt über alle Flüge
#define EEPROM_ADR_MINUTES2 14 // FlugMinuten Einzelflug
#define EEPROM_ADR_CHANNELS 80 // Ablageadresse der Kanäle
#define EEPROM_ADR_PARAM_LENGTH 98 // Länge des structs mk_param_struct verwendet für EE_Parameter = 101
#define EEPROM_ADR_PARAM_BEGIN 100 // Startadresse der Abbilder vom struct mk_param_struct also EE_Parameter
#define EEPROM_ADR_MIXER_TABLE 1000 // 1001 - 1100
#ifndef EEMEM
#define EEMEM __attribute__ ((section (".eeprom")))
#endif
//-----------------------------------------------------------------------------------------------------------------------------------
extern unsigned char EEPromArray[];
//----------------------------------------- declaration of functions --------------------------
void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length);
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length);
extern unsigned char GetActiveParamSetNumber(void);
void SetActiveParamSetNumber(unsigned char number);
#endif
//*** EOF: __EEPROM_H ***********************************************************************************************************