Functions | |
void | zaf_nvm_app_set_default_configuration (void) |
Used by the application to execute actions after a set default configuration. | |
void | zaf_nvm_app_reset (void) |
Used by the application to execute actions after a application reset. | |
void | zaf_nvm_app_load_configuration (void) |
Used by the application to execute actions after a load configuration. | |
void | zaf_nvm_app_load_configuration_migration (uint32_t current_version, uint32_t saved_version) |
Used by the application to execute actions when the current version differs from the saved version. | |
void | zafi_nvm_app_set_default_configuration (void) |
Resets configuration to default values. | |
void | zafi_nvm_app_reset (void) |
Resets the NVM file system. | |
void | zafi_nvm_app_load_configuration (void) |
Loads the default configuration common for all applications. | |
bool | ZAF_nvm_init (void) |
Opens file system for ZAF. | |
bool | ZAF_nvm_erase (void) |
Erases application nvm. (Does nothing on 800s since it has 1 shared nvm for application and protocol.) | |
zpal_status_t | ZAF_nvm_erase_object (zpal_nvm_object_key_t key) |
Erases an object from application nvm. | |
zpal_status_t | ZAF_nvm_read (zpal_nvm_object_key_t key, void *object, size_t object_size) |
Reads an object from application nvm. | |
zpal_status_t | ZAF_nvm_read_object_part (zpal_nvm_object_key_t key, void *object, size_t offset, size_t size) |
Reads part of an object from application nvm. | |
zpal_status_t | ZAF_nvm_write (zpal_nvm_object_key_t key, const void *object, size_t object_size) |
Writes an object to application nvm. | |
zpal_status_t | ZAF_nvm_get_object_size (zpal_nvm_object_key_t key, size_t *len) |
Get the object size identified with a given key from NVM. | |
bool | ZAF_nvm_app_init (void) |
Opens file system for application. | |
bool | ZAF_nvm_app_erase (void) |
Erases application nvm. (Does nothing on 800s since it has 1 shared nvm for application and protocol.) | |
zpal_status_t | ZAF_nvm_app_erase_object (zpal_nvm_object_key_t key) |
Erases an object from application nvm. | |
zpal_status_t | ZAF_nvm_app_read (zpal_nvm_object_key_t key, void *object, size_t object_size) |
Reads an object from application nvm. | |
zpal_status_t | ZAF_nvm_app_read_object_part (zpal_nvm_object_key_t key, void *object, size_t offset, size_t size) |
Reads part of an object from application nvm. | |
zpal_status_t | ZAF_nvm_app_write (zpal_nvm_object_key_t key, const void *object, size_t object_size) |
Writes an object to application nvm. | |
zpal_status_t | ZAF_nvm_app_get_object_size (zpal_nvm_object_key_t key, size_t *len) |
Get the object size identified with a given key from NVM. | |
bool ZAF_nvm_app_erase | ( | void | ) |
Erases application nvm. (Does nothing on 800s since it has 1 shared nvm for application and protocol.)
zpal_status_t ZAF_nvm_app_erase_object | ( | zpal_nvm_object_key_t | key | ) |
Erases an object from application nvm.
[in] | key | Object key. |
zpal_status_t ZAF_nvm_app_get_object_size | ( | zpal_nvm_object_key_t | key, |
size_t * | len ) |
Get the object size identified with a given key from NVM.
[in] | key | Object key. |
[out] | len | Object size. |
bool ZAF_nvm_app_init | ( | void | ) |
Opens file system for application.
void zaf_nvm_app_load_configuration | ( | void | ) |
Used by the application to execute actions after a load configuration.
void zaf_nvm_app_load_configuration_migration | ( | uint32_t | current_version, |
uint32_t | saved_version ) |
Used by the application to execute actions when the current version differs from the saved version.
current_version | Version returned by zpal_get_app_version |
saved_version | Version stored in ZAF_FILE_ID_APP_VERSION |
zpal_status_t ZAF_nvm_app_read | ( | zpal_nvm_object_key_t | key, |
void * | object, | ||
size_t | object_size ) |
Reads an object from application nvm.
[in] | key | Object key. |
[out] | object | Address of array where object can be written to. |
[in] | object_size | Size of the stored object. |
zpal_status_t ZAF_nvm_app_read_object_part | ( | zpal_nvm_object_key_t | key, |
void * | object, | ||
size_t | offset, | ||
size_t | size ) |
Reads part of an object from application nvm.
[in] | key | Object key. |
[out] | object | Address of array where part of object can be written to. |
[in] | offset | The offset in object where part shall be read from. |
[in] | size | Size of the object part. |
void zaf_nvm_app_reset | ( | void | ) |
Used by the application to execute actions after a application reset.
void zaf_nvm_app_set_default_configuration | ( | void | ) |
Used by the application to execute actions after a set default configuration.
zpal_status_t ZAF_nvm_app_write | ( | zpal_nvm_object_key_t | key, |
const void * | object, | ||
size_t | object_size ) |
Writes an object to application nvm.
[in] | key | Object key. |
[out] | object | Address of array of object that is written. |
[in] | object_size | Size of the stored object. |
bool ZAF_nvm_erase | ( | void | ) |
Erases application nvm. (Does nothing on 800s since it has 1 shared nvm for application and protocol.)
zpal_status_t ZAF_nvm_erase_object | ( | zpal_nvm_object_key_t | key | ) |
Erases an object from application nvm.
[in] | key | Object key. |
zpal_status_t ZAF_nvm_get_object_size | ( | zpal_nvm_object_key_t | key, |
size_t * | len ) |
Get the object size identified with a given key from NVM.
[in] | key | Object key. |
[out] | len | Object size. |
bool ZAF_nvm_init | ( | void | ) |
Opens file system for ZAF.
zpal_status_t ZAF_nvm_read | ( | zpal_nvm_object_key_t | key, |
void * | object, | ||
size_t | object_size ) |
Reads an object from application nvm.
[in] | key | Object key. |
[out] | object | Address of array where object can be written to. |
[in] | object_size | Size of the stored object. |
zpal_status_t ZAF_nvm_read_object_part | ( | zpal_nvm_object_key_t | key, |
void * | object, | ||
size_t | offset, | ||
size_t | size ) |
Reads part of an object from application nvm.
[in] | key | Object key. |
[out] | object | Address of array where part of object can be written to. |
[in] | offset | The offset in object where part shall be read from. |
[in] | size | Size of the object part. |
zpal_status_t ZAF_nvm_write | ( | zpal_nvm_object_key_t | key, |
const void * | object, | ||
size_t | object_size ) |
Writes an object to application nvm.
[in] | key | Object key. |
[out] | object | Address of array of object that is written. |
[in] | object_size | Size of the stored object. |
void zafi_nvm_app_load_configuration | ( | void | ) |
Loads the default configuration common for all applications.
void zafi_nvm_app_reset | ( | void | ) |
Resets the NVM file system.
void zafi_nvm_app_set_default_configuration | ( | void | ) |
Resets configuration to default values.
Add application specific functions here to initialize configuration values stored in persistent memory. Will be called at any of the following events: