nRF5 SDK v11.0.0
Data Fields
fs_config_t Struct Reference

fstorage application-specific configuration. More...

#include <fstorage.h>

Data Fields

uint32_t const * p_start_addr
 The beginning of the flash space assigned to the application which registered this configuration. This field is set by fs_init.
 
uint32_t const * p_end_addr
 The end of the flash space assigned to the application which registered this configuration. This field is set by fs_init.
 
fs_cb_t const callback
 Callback to run when a flash operation has completed.
 
uint8_t const num_pages
 The number of flash pages requested.
 
uint8_t const priority
 The priority with which fstorage should assign flash pages to this application, with respect to other applications. Applications with higher priority will be assigned flash pages with a higher memory address. The highest priority is reserved. Must be unique among configurations.
 

Detailed Description

fstorage application-specific configuration.

Specifies the callback to invoke when an operation completes, the number of flash pages requested by the application and the priority with which these are to be assigned, with respect to other applications. Additionally, the configuration specifies the boundaries of the flash space assigned to an application. The configuration must be provided as an argument when invoking fs_store and fs_erase.

Note
The fields p_start_addr and p_end_address are set by fs_init, based on the value of the field priority.

Documentation feedback | Developer Zone | Updated