| 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
Macros
Flash data storage module configuration
Flash Data Storage

## Macros
#define | FDS_ENABLED
| Enabling FDS module. * Set to 1 to activate. More...
#define | FDS_OP_QUEUE_SIZE
| Size of the internal queue. *. More...
#define | FDS_CHUNK_QUEUE_SIZE
| Determines how many fds_record_chunk_t structures can be buffered at any time. *. More...
#define | FDS_MAX_USERS
| Maximum number of callbacks that can be registered. *. More...
#define | FDS_VIRTUAL_PAGES
| Number of virtual flash pages to use. More...
#define | FDS_VIRTUAL_PAGE_SIZE
| The size of a virtual page of flash memory, expressed in number of 4-byte words. More...

## Detailed Description

## Macro Definition Documentation

#define FDS_CHUNK_QUEUE_SIZE

Determines how many fds_record_chunk_t structures can be buffered at any time. *.

Note
  This is an NRF_CONFIG macro.

#define FDS_ENABLED

Enabling FDS module. * Set to 1 to activate.

Note
  This is an NRF_CONFIG macro.

#define FDS_MAX_USERS

Maximum number of callbacks that can be registered. *.

Note
  This is an NRF_CONFIG macro.

#define FDS_OP_QUEUE_SIZE

Size of the internal queue. *.

Note
  This is an NRF_CONFIG macro.

#define FDS_VIRTUAL_PAGE_SIZE

The size of a virtual page of flash memory, expressed in number of 4-byte words.

By default, a virtual page is the same size as a physical page. The size of a virtual page must be a multiple of the size of a physical page.

Following options are avaiable:

- 256 - 256 (nRF51 family only)
- 256 - 256 (Software Component only)
- 512 - 512 (nRF51 family only)
- 1024 - 1024
- 2048 - 2048 (nRF52 family only)

Note
  This is an NRF_CONFIG macro.

#define FDS_VIRTUAL_PAGES

Number of virtual flash pages to use.

One of the virtual pages is reserved by the system for garbage collection. Therefore, the minimum is two virtual pages: one page to store data and one page to be used by the system for garbage collection. The total amount of flash memory that is used by FDS amounts to FDS_VIRTUAL_PAGES FDS_VIRTUAL_PAGE_SIZE * 4 bytes.

Note
  This is an NRF_CONFIG macro.