| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
fs_config_t Struct Reference
fstorage

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. It can also be set manually.
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. It can also be set manually.
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`.