![]() |
Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
|
definitions for persistent data in EEPROM or config. file More...
#include "system_configuration.h"#include "embedded_memory.h"#include "embedded_math.h"#include "persistent_data.h"#include "string.h"#include "eeprom.h"#include "my_assert.h"Go to the source code of this file.
Macros | |
| #define | READ true |
| #define | WRITE false |
Functions | |
| void | ensure_EEPROM_parameter_integrity (void) |
| const persistent_data_t * | find_parameter_from_name (char *name) |
| const persistent_data_t * | find_parameter_from_ID (EEPROM_PARAMETER_ID id) |
| bool | EEPROM_convert (EEPROM_PARAMETER_ID id, EEPROM_data_t &EEPROM_value, float &value, bool read) |
| bool | lock_EEPROM (bool lockit) |
| bool | write_EEPROM_value (EEPROM_PARAMETER_ID id, float value) |
| bool | read_EEPROM_value (EEPROM_PARAMETER_ID id, float &value) |
| float | configuration (EEPROM_PARAMETER_ID id) |
| bool | EEPROM_initialize (void) |
Variables | |
| ROM persistent_data_t | PERSISTENT_DATA [] |
| ROM unsigned | PERSISTENT_DATA_ENTRIES = sizeof(PERSISTENT_DATA) / sizeof(persistent_data_t) |
definitions for persistent data in EEPROM or config. file
<Larus Flight Sensor Firmware>
This program 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.
This program 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 this program. If not, see http://www.gnu.org/licenses/.
Definition in file persistent_data.cpp.
Definition at line 107 of file persistent_data.cpp.
Definition at line 108 of file persistent_data.cpp.
| float configuration | ( | EEPROM_PARAMETER_ID | id | ) |
Definition at line 240 of file persistent_data.cpp.
References read_EEPROM_value().
Referenced by organizer_t::initialize_before_measurement().
| bool EEPROM_convert | ( | EEPROM_PARAMETER_ID | id, |
| EEPROM_data_t & | EEPROM_value, | ||
| float & | value, | ||
| bool | read | ||
| ) |
Definition at line 110 of file persistent_data.cpp.
References M_PI_F.
Referenced by read_EEPROM_value(), and write_EEPROM_value().
Definition at line 248 of file persistent_data.cpp.
Referenced by compass_calibration_t< sample_type, evaluation_type >::write_into_EEPROM().
Definition at line 64 of file persistent_data.cpp.
References lock_EEPROM(), PERSISTENT_DATA, PERSISTENT_DATA_ENTRIES, read_EEPROM_value(), and write_EEPROM_value().
Referenced by main().
| const persistent_data_t * find_parameter_from_ID | ( | EEPROM_PARAMETER_ID | id | ) |
Definition at line 94 of file persistent_data.cpp.
References PERSISTENT_DATA, and PERSISTENT_DATA_ENTRIES.
Referenced by read_EEPROM_file().
| const persistent_data_t * find_parameter_from_name | ( | char * | name | ) |
Definition at line 86 of file persistent_data.cpp.
References PERSISTENT_DATA, and PERSISTENT_DATA_ENTRIES.
Definition at line 209 of file persistent_data.cpp.
Referenced by ensure_EEPROM_parameter_integrity(), and AHRS_type::write_calibration_into_EEPROM().
| bool read_EEPROM_value | ( | EEPROM_PARAMETER_ID | id, |
| float & | value | ||
| ) |
Definition at line 232 of file persistent_data.cpp.
References EEPROM_convert(), and READ.
Referenced by configuration(), ensure_EEPROM_parameter_integrity(), and compass_calibration_t< sample_type, evaluation_type >::read_from_EEPROM().
| bool write_EEPROM_value | ( | EEPROM_PARAMETER_ID | id, |
| float | value | ||
| ) |
Definition at line 218 of file persistent_data.cpp.
References EEPROM_convert(), and WRITE.
Referenced by ensure_EEPROM_parameter_integrity(), and compass_calibration_t< sample_type, evaluation_type >::write_into_EEPROM().
| ROM persistent_data_t PERSISTENT_DATA[] |
Definition at line 31 of file persistent_data.cpp.
Referenced by ensure_EEPROM_parameter_integrity(), find_parameter_from_ID(), find_parameter_from_name(), and write_EEPROM_dump().
| ROM unsigned PERSISTENT_DATA_ENTRIES = sizeof(PERSISTENT_DATA) / sizeof(persistent_data_t) |
Definition at line 62 of file persistent_data.cpp.
Referenced by ensure_EEPROM_parameter_integrity(), find_parameter_from_ID(), find_parameter_from_name(), and write_EEPROM_dump().