#include <Arduino.h>
#include <EEPROM.h>
Go to the source code of this file.
|
| 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.
|
| |
Saved_data.h - Non-volatile Memory Abstraction Layer for XRCU.
- Copyright
- Copyright (c) 2024 - 2025 YH Choi @ JM9. All right reserved.
◆ read_saved_data()
| uint16_t read_saved_data |
( |
uint16_t | position | ) |
|
Reads the value of a specific position in the saved data.
- Parameters
-
| position | the 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
-
| position | the position of saved data to be modified [1 : 32] |
| new_value | the 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