19#include <zephyr/sys/util.h>
20#include <zephyr/sys/slist.h>
62#define EMDS_STATIC_ENTRY_DEFINE(_name, _id, _data, _len) \
63 static const STRUCT_SECTION_ITERABLE(emds_entry, emds_##_name) = { \
65 .data = (uint8_t *)_data, \
uint32_t emds_store_time_get(void)
Estimate the time needed to store the registered data.
bool emds_is_ready(void)
Check if the store operation can be run.
int emds_entry_add(struct emds_dynamic_entry *entry)
Add entry to be saved/restored when emergency data storage is called.
int emds_store(void)
Start the emergency data storage process.
void(* emds_store_cb_t)(void)
Callback for application commands when storing has been executed.
Definition emds.h:81
int emds_clear(void)
Clear flash area from the emergency data storage.
int emds_load(void)
Load all static data from the emergency data storage.
int emds_init(emds_store_cb_t cb)
Initialize the emergency data storage.
uint32_t emds_store_size_get(void)
Calculate the size needed to store the registered data.
int emds_prepare(void)
Prepare flash area for the next emergency data storage.
struct emds_entry entry
Definition emds.h:47
sys_snode_t node
Definition emds.h:48
uint16_t id
Definition emds.h:33
size_t len
Definition emds.h:37
uint8_t * data
Definition emds.h:35