JM9 XRCU Board 0.1.2
Libraries API Reference
Loading...
Searching...
No Matches
Saved_data.h File Reference
#include <Arduino.h>
#include <EEPROM.h>

Go to the source code of this file.

Functions

bool write_saved_data (uint16_t position, uint16_t new_value)
 Modifies the value of a specific position in the saved data.
 
uint16_t read_saved_data (uint16_t position)
 Reads the value of a specific position in the saved data.
 

Detailed Description

Saved_data.h - Non-volatile Memory Abstraction Layer for XRCU.

Function Documentation

◆ read_saved_data()

uint16_t read_saved_data ( uint16_t position)

Reads the value of a specific position in the saved data.

Parameters
positionthe position of saved data to be read [1 : 32]
Returns
the value stored in the specific position [0 : 65535]

◆ write_saved_data()

bool write_saved_data ( uint16_t position,
uint16_t new_value )

Modifies the value of a specific position in the saved data.

Parameters
positionthe position of saved data to be modified [1 : 32]
new_valuethe new value to be stored in the specific position in saved data [0 : 65535]
Returns
true if the new value is successfully saved to the position, false otherwise