![]() |
Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
|
Replacement on the PC for the nonvolatile memory of the micro-controller. More...
#include <iostream>#include <fstream>#include "assert.h"#include "stdio.h"#include "stdlib.h"#include "string.h"#include "math.h"#include "system_configuration.h"#include "ascii_support.h"#include "EEPROM_emulation.h"#include <istream>#include <string>Go to the source code of this file.
Functions | |
| float | configuration (EEPROM_PARAMETER_ID id) |
| const persistent_data_t * | find_parameter_from_ID (EEPROM_PARAMETER_ID id) |
| bool | read_EEPROM_value (EEPROM_PARAMETER_ID id, float &value) |
| bool | write_EEPROM_value (EEPROM_PARAMETER_ID id, float value) |
| bool | EEPROM_initialize (void) |
| int | read_identifier (const char *s) |
| bool | lock_EEPROM (bool) |
| int | read_EEPROM_file (char *basename) |
| bool | write_EEPROM_dump (char *basename) |
Variables | |
| config_param_type | config_parameters [EEPROM_PARAMETER_ID_END] |
Replacement on the PC for the nonvolatile memory of the micro-controller.
<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 EEPROM_emulation.cpp.
| float configuration | ( | EEPROM_PARAMETER_ID | id | ) |
Definition at line 44 of file EEPROM_emulation.cpp.
References config_parameters, and config_param_type::value.
Definition at line 76 of file EEPROM_emulation.cpp.
| 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().
Definition at line 91 of file EEPROM_emulation.cpp.
Definition at line 96 of file EEPROM_emulation.cpp.
References config_parameters, find_parameter_from_ID(), config_param_type::identifier, len, read_identifier(), and config_param_type::value.
Referenced by main().
| bool read_EEPROM_value | ( | EEPROM_PARAMETER_ID | id, |
| float & | value | ||
| ) |
Definition at line 54 of file EEPROM_emulation.cpp.
References config_parameters, and config_param_type::value.
Referenced by write_EEPROM_dump().
Definition at line 157 of file EEPROM_emulation.cpp.
References append_string(), format_2_digits(), my_ftoa(), PERSISTENT_DATA, PERSISTENT_DATA_ENTRIES, read_EEPROM_value(), and vector< datatype, size >::vector().
Referenced by main().
| bool write_EEPROM_value | ( | EEPROM_PARAMETER_ID | id, |
| float | value | ||
| ) |
Definition at line 65 of file EEPROM_emulation.cpp.
References assert, config_parameters, and config_param_type::value.
| config_param_type config_parameters[EEPROM_PARAMETER_ID_END] |
Definition at line 42 of file EEPROM_emulation.cpp.
Referenced by configuration(), read_EEPROM_file(), read_EEPROM_value(), and write_EEPROM_value().