IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
Macros | Functions
iotmi_pal_Nvm.h File Reference

This file defines non-volatile memory functions platform abstraction interface. More...

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define IOTMI_PAL_NVM_STORAGE_SIZE   (256U)
 Non-volatile memory storage size.
 

Functions

bool iotmiPal_nvmStore (uint8_t *pData, size_t size)
 Storage data to non-volatile memory.
 
bool iotmiPal_nvmLoad (uint8_t *pData, size_t size)
 Load data from non-volatile memory.
 

Detailed Description

This file defines non-volatile memory functions platform abstraction interface.

Function Documentation

◆ iotmiPal_nvmLoad()

bool iotmiPal_nvmLoad ( uint8_t *  pData,
size_t  size 
)

Load data from non-volatile memory.

Parameters
[in]pDatapointer of buffer to load the data.
[in]sizeSize of the data to load.
Returns
Return true to indicate success. Return false when error.

◆ iotmiPal_nvmStore()

bool iotmiPal_nvmStore ( uint8_t *  pData,
size_t  size 
)

Storage data to non-volatile memory.

Parameters
[in]pDatapointer of data to store.
[in]sizeSize of the data to store.
Returns
Return true to indicate success. Return false when error.