Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
ZAF_nvm.h File Reference

Defines file system for ZAF. More...

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

Go to the source code of this file.

Functions

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.
 

Detailed Description

Defines file system for ZAF.

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