EFR32 Mighty Gecko 13 Software Documentation  efr32mg13-doc-5.1.2
nvm_hal.h
Go to the documentation of this file.
1 /***************************************************************************/
17 #ifndef __NVMHAL_H
18 #define __NVMHAL_H
19 
20 #include "em_device.h"
21 #include <stdbool.h>
22 #include "nvm.h"
23 #include "ecode.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 /*******************************************************************************
30  ***************************** PROTOTYPES **********************************
31  ******************************************************************************/
32 
33 void NVMHAL_Init(void);
34 void NVMHAL_DeInit(void);
35 void NVMHAL_Read(uint8_t *pAddress, void *pObject, uint16_t len);
36 Ecode_t NVMHAL_Write(uint8_t *pAddress, void const *pObject, uint16_t len);
37 Ecode_t NVMHAL_PageErase(uint8_t *pAddress);
38 void NVMHAL_Checksum(uint16_t *checksum, void *pMemory, uint16_t len);
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* __NVMHAL_H */
void NVMHAL_Read(uint8_t *pAddress, void *pObject, uint16_t len)
Read data from NVM.
Definition: nvm_hal.c:168
void NVMHAL_Checksum(uint16_t *checksum, void *pMemory, uint16_t len)
Calculate checksum according to CCITT CRC16.
Definition: nvm_hal.c:324
Energy Aware drivers error code definitions.
Ecode_t NVMHAL_Write(uint8_t *pAddress, void const *pObject, uint16_t len)
Write data to NVM.
Definition: nvm_hal.c:207
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
Ecode_t NVMHAL_PageErase(uint8_t *pAddress)
Erase a page in the NVM.
Definition: nvm_hal.c:294
Non-Volatile Memory Wear-Leveling driver API.
void NVMHAL_DeInit(void)
De-initialize NVM .
Definition: nvm_hal.c:141
void NVMHAL_Init(void)
Initialize NVM driver.
Definition: nvm_hal.c:127
uint32_t Ecode_t
Typedef for API function error code return values.
Definition: ecode.h:51