Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
EEPROM_emulation.cpp File Reference

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_tfind_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]
 

Detailed Description

Replacement on the PC for the nonvolatile memory of the micro-controller.

Author
Dr. Klaus Schaefer

<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.

Function Documentation

◆ configuration()

float configuration ( EEPROM_PARAMETER_ID  id)

Definition at line 44 of file EEPROM_emulation.cpp.

References config_parameters, and config_param_type::value.

◆ EEPROM_initialize()

bool EEPROM_initialize ( void  )

Definition at line 76 of file EEPROM_emulation.cpp.

◆ find_parameter_from_ID()

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().

◆ lock_EEPROM()

bool lock_EEPROM ( bool  )

Definition at line 91 of file EEPROM_emulation.cpp.

◆ read_EEPROM_file()

int read_EEPROM_file ( char basename)

◆ read_EEPROM_value()

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().

◆ read_identifier()

int read_identifier ( const char s)

Definition at line 82 of file EEPROM_emulation.cpp.

References s.

Referenced by read_EEPROM_file().

◆ write_EEPROM_dump()

◆ write_EEPROM_value()

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.

Variable Documentation

◆ config_parameters