|
MeshX 0.4
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
|
Implementation for Non-Volatile Storage (NVS) drivers Insterface APIs. More...
Go to the source code of this file.
Functions | |
| meshx_err_t | meshx_nvs_plat_open (uintptr_t *p_nvs_handle) |
| Open non-volatile storage with a given namespace from the default partition. | |
| meshx_err_t | meshx_nvs_plat_close (uintptr_t p_nvs_handle) |
| Close the non-volatile storage handle. | |
| meshx_err_t | meshx_nvs_plat_read (uintptr_t p_nvs_handle, char const *key, uint8_t *p_data, uint16_t len) |
| Read blob value for given key from non-volatile storage. | |
| meshx_err_t | meshx_nvs_plat_write (uintptr_t p_nvs_handle, char const *key, uint8_t const *p_data, uint16_t len) |
| Write a blob value to the non-volatile storage with a given key and namespace. | |
| meshx_err_t | meshx_nvs_plat_erase (uintptr_t p_nvs_handle) |
| Erase all key-value pairs in the given namespace. | |
| meshx_err_t | meshx_nvs_plat_remove (uintptr_t p_nvs_handle, char const *key) |
| Remove a key-value pair from the non-volatile storage with a given key and namespace. | |
| meshx_err_t | meshx_nvs_plat_commit (uintptr_t p_nvs_handle) |
| Commit changes to the non-volatile storage. | |
Implementation for Non-Volatile Storage (NVS) drivers Insterface APIs.
Copyright © 2024 - 2025 MeshX
| meshx_err_t meshx_nvs_plat_close | ( | uintptr_t | p_nvs_handle | ) |
Close the non-volatile storage handle.
| [in] | p_nvs_handle | Handle obtained with meshx_nvs_plat_open. |
| meshx_err_t meshx_nvs_plat_commit | ( | uintptr_t | p_nvs_handle | ) |
Commit changes to the non-volatile storage.
| [in] | p_nvs_handle | Pointer to the opened handle. |
| meshx_err_t meshx_nvs_plat_erase | ( | uintptr_t | p_nvs_handle | ) |
Erase all key-value pairs in the given namespace.
| [in] | p_nvs_handle | Pointer to the opened handle. |
| meshx_err_t meshx_nvs_plat_open | ( | uintptr_t * | p_nvs_handle | ) |
Open non-volatile storage with a given namespace from the default partition.
If CONFIG_BLE_MESH_SPECIFIC_PARTITION is not defined, this function will open the namespace from the default partition. Otherwise, it will open the namespace from the MESHX_NVS_PARTITION.
| [out] | p_nvs_handle | Pointer to the output variable populated with the opened handle. |
| meshx_err_t meshx_nvs_plat_read | ( | uintptr_t | p_nvs_handle, |
| char const * | key, | ||
| uint8_t * | p_data, | ||
| uint16_t | len ) |
Read blob value for given key from non-volatile storage.
| [in] | p_nvs_handle | Handle obtained with meshx_nvs_plat_open. |
| [in] | key | Key name. Maximum length is (NVS_KEY_NAME_MAX_SIZE-1) characters. Shouldn't be empty. |
| [out] | p_data | Pointer to the output variable populated with the read blob value. |
| [in] | len | Length of the read blob value. |
| meshx_err_t meshx_nvs_plat_remove | ( | uintptr_t | p_nvs_handle, |
| char const * | key ) |
Remove a key-value pair from the non-volatile storage with a given key and namespace.
| [in] | p_nvs_handle | Pointer to the opened handle. |
| [in] | key | Key name. Maximum length is (NVS_KEY_NAME_MAX_SIZE-1) characters. Shouldn't be empty. |
| meshx_err_t meshx_nvs_plat_write | ( | uintptr_t | p_nvs_handle, |
| char const * | key, | ||
| uint8_t const * | p_data, | ||
| uint16_t | len ) |
Write a blob value to the non-volatile storage with a given key and namespace.
| [in] | p_nvs_handle | Pointer to the opened handle. |
| [in] | key | Key name. Maximum length is (NVS_KEY_NAME_MAX_SIZE-1) characters. Shouldn't be empty. |
| [in] | p_data | Pointer to the data to write. |
| [in] | len | Number of bytes to write. |