nRF5 SDK v12.1.0
Macros
Flash data storage module configuration

Macros

#define FDS_ENABLED
 Enabling FDS module. 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 available:

  • 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.

Documentation feedback | Developer Zone | Subscribe | Updated