updates

Fork of nrf51-sdk by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

pstorage_module_param_t Struct Reference

pstorage_module_param_t Struct Reference
[Persistent Memory Interface Data Types]

Struct containing module registration context. More...

#include <pstorage.h>

Data Fields

pstorage_ntf_cb_t cb
 Persistent storage operation completion callback function pstorage_ntf_cb_t.
pstorage_size_t block_size
 Desired block size for persistent memory storage.

Detailed Description

Struct containing module registration context.

Definition at line 102 of file pstorage.h.


Field Documentation

pstorage_size_t block_size

Desired block size for persistent memory storage.

For example, if a module has a table with 10 entries, and each entry is 64 bytes in size, it can request 10 blocks with a block size of 64 bytes. The module can also request one block that is 640 bytes depending on how it would like to access or alter the memory in persistent memory. The first option is preferred when it is a single entry that needs to be updated often and doesn't impact the other entries. The second option is preferred when table entries are not changed individually but have a common point of loading and storing data.

Definition at line 105 of file pstorage.h.

Persistent storage operation completion callback function pstorage_ntf_cb_t.

Definition at line 104 of file pstorage.h.