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. | |
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.
p_start_addr
and p_end_address
are set by fs_init, based on the value of the field priority
.