Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
persistent_data.h
Go to the documentation of this file.
1/***********************************************************************/
25#ifndef INC_PERSISTENT_DATA_H_
26#define INC_PERSISTENT_DATA_H_
27
28#include "stdint.h"
29
30#ifdef __cplusplus
31
32typedef union
33 {
37
39{
40 GNSS_NONE, // not really useful
41 GNSS_M9N, // single frequency module, usually on PCB
42 GNSS_F9P_F9P, // D-GNSS using 2 * uBlox F9P, both on USART 3
43 GNSS_F9P_F9H // D-GNSS using F9P on USART 3 and F9H (heading) on USART4
44};
45
47{
48 BOARD_ID = 0,
49
53
57
58 MAG_X_OFF=10,
66
67 VARIO_TC=30,
69 WIND_TC,
71 HORIZON,
72
77
78 EEPROM_PARAMETER_ID_END // 1 behind last parameter ID
79};
80
82{
83public:
84 enum { MNEMONIC_LENGTH=16};
87 bool is_an_angle;
88 float default_value;
89 EEPROM_data_t value;
90};
91
94
95// standard function to read configuration data from EEPROM
97bool write_EEPROM_value( EEPROM_PARAMETER_ID id, float value);
98bool read_EEPROM_value( EEPROM_PARAMETER_ID id, float &value);
99bool lock_EEPROM( bool lockit);
100bool EEPROM_initialize( void);
102
104extern const unsigned PERSISTENT_DATA_ENTRIES;
105
106#endif
107
108#endif /* INC_PERSISTENT_DATA_H_ */
mathematical vector of arbitrary type and size
Definition vector.h:40
vector(void)
Definition vector.h:45
void ensure_EEPROM_parameter_integrity(void)
float configuration(EEPROM_PARAMETER_ID id)
bool write_EEPROM_value(EEPROM_PARAMETER_ID id, float value)
bool lock_EEPROM(bool lockit)
ROM persistent_data_t PERSISTENT_DATA[]
bool read_EEPROM_value(EEPROM_PARAMETER_ID id, float &value)
bool EEPROM_initialize(void)
const persistent_data_t * find_parameter_from_ID(EEPROM_PARAMETER_ID id)
const persistent_data_t * find_parameter_from_name(char *name)
ROM unsigned PERSISTENT_DATA_ENTRIES