nRF51 SDK - S110 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
pstorage_module_param_t Struct Reference

Data Fields

pstorage_ntf_cb_t cb
 
pstorage_size_t block_size
 
pstorage_size_t block_count
 

Field Documentation

pstorage_size_t pstorage_module_param_t::block_size
     Desired block size for persistent memory storage, for example, if a module has a table with 10 entries, each entry is size 64 bytes,

it can request 10 blocks with block size 64 bytes. On the other hand, the module can also request one block of size 640 based on how it would like to access or alter memory in persistent memory. First option is preferred when single entries that need to be updated often when having no impact on the other entries. While second option is preferred when entries of table are not changed on individually but have common point of loading and storing data.

pstorage_ntf_cb_t pstorage_module_param_t::cb

Callback registered with the module to be notified of any error occurring in persistent memory management