Trident IoT Z-Wave SDK
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ZAF_nvm_app.h File Reference

Defines file system for application. More...

#include <stdbool.h>
#include <zpal_nvm.h>
+ Include dependency graph for ZAF_nvm_app.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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.
 

Detailed Description

Defines file system for application.

The module contains a zpal_nvm_handle_t that defines the file system for the application. A pointer to the handle is passed as output parameter from ZAF_nvm_app_init(). There are also functions for verifying that the file system contains the files that are expected.