![]() |
FOSSASAT-1B
|
This module controls access to the EEPROM. More...
#include "FossaSat1B.h"
#include <EEPROM.h>
Go to the source code of this file.
Functions | |
template<typename T > | |
T | Persistent_Storage_Read (uint16_t addr) |
This function reads a value of type T from EEPROM. More... | |
template<typename T > | |
void | Persistent_Storage_Write (uint16_t addr, T val) |
This function writes a value of type T to the eerom. More... | |
void | Persistent_Storage_Wipe () |
This functions clears the EEPROM by writing EEPROM_RESET_VALUE to each memory addres. More... | |
void | Persistent_Storage_Increment_Counter (uint16_t addr) |
This functions increments 2-byte counter in EEPROM. More... | |
void | Persistent_Storage_Increment_Frame_Counter (bool valid) |
This functions increments one of frame counters of the currently active modem in EEPROM. More... | |
template<typename T > | |
void | Persistent_Storage_Update_Stats (uint16_t addr, T val) |
Updates minimum, average and maximum stats in EEPROM. More... | |
This module controls access to the EEPROM.
Definition in file persistent_storage.h.
void Persistent_Storage_Increment_Counter | ( | uint16_t | addr | ) |
This functions increments 2-byte counter in EEPROM.
addr | The address of counter to increment |
Definition at line 55 of file persistent_storage.cpp.
void Persistent_Storage_Increment_Frame_Counter | ( | bool | valid | ) |
This functions increments one of frame counters of the currently active modem in EEPROM.
valid | Whether to increment valid or invalid counter |
Definition at line 59 of file persistent_storage.cpp.
T Persistent_Storage_Read | ( | uint16_t | addr | ) |
This function reads a value of type T from EEPROM.
T |
addr | Memory address. |
Definition at line 22 of file persistent_storage.h.
void Persistent_Storage_Update_Stats | ( | uint16_t | addr, |
T | val | ||
) |
Updates minimum, average and maximum stats in EEPROM.
T |
addr | Memory address. |
val |
Definition at line 73 of file persistent_storage.h.
void Persistent_Storage_Wipe | ( | ) |
This functions clears the EEPROM by writing EEPROM_RESET_VALUE to each memory addres.
Definition at line 3 of file persistent_storage.cpp.
void Persistent_Storage_Write | ( | uint16_t | addr, |
T | val | ||
) |
This function writes a value of type T to the eerom.
T |
addr | Memory address. |
val |
Definition at line 36 of file persistent_storage.h.