NVM config definition. More...
#include <stdint.h>
#include <stdbool.h>
#include "ecode.h"
Go to the source code of this file.
Data Structures | |
struct | NVM_Object_Descriptor_t |
Describes the properties of an object in a page. More... | |
struct | NVM_Page_Descriptor_t |
Describes the properties of a page. More... | |
struct | NVM_Config_t |
Configuration structure. More... | |
Defines | |
#define | NVM_FEATURE_WEAR_PAGES_ENABLED true |
Without this define the wear pages are no longer supported. | |
#define | NVM_FEATURE_STATIC_WEAR_ENABLED true |
Include and activate the static wear leveling functionality. | |
#define | NVM_STATIC_WEAR_THRESHOLD 100 |
The threshold used to decide when to do static wear leveling. | |
#define | NVM_FEATURE_READ_VALIDATION_ENABLED true |
Validate data against checksums on every read operation. | |
#define | NVM_FEATURE_WRITE_VALIDATION_ENABLED true |
Validate data against checksums after every write operation. | |
#define | NVM_FEATURE_WEARLEVELGET_ENABLED true |
Include the NVM_WearLevelGet function. | |
#define | NVM_FEATURE_WRITE_NECESSARY_CHECK_ENABLED true |
Check if data has been updated before writing update to the NVM. | |
#define | NVM_MAX_NUMBER_OF_PAGES 32 |
define maximum number of flash pages that can be used as NVM | |
#define | NVM_PAGES_SCRATCH 1 |
Configure extra pages to allocate for data security and wear leveling. | |
#define | NVM_PAGE_SIZE FLASH_PAGE_SIZE |
Set the NVM driver page size to the size of the EFM32 flash. | |
Typedefs | |
typedef NVM_Object_Descriptor_t | NVM_Page_t [] |
A collection of object descriptors that make up a page. | |
typedef NVM_Page_Descriptor_t | NVM_Page_Table_t [] |
The list of pages registered for use. | |
Enumerations | |
enum | NVM_Page_Type_t { nvmPageTypeNormal = 0, nvmPageTypeWear = 1 } |
Enum describing the type of logical page we have; normal or wear. More... | |
Functions | |
NVM_Config_t const * | NVM_ConfigGet (void) |
Return a pointer to the config data. |
NVM config definition.
(C) Copyright 2014 Silicon Labs, http://www.silabs.com
This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.
Definition in file nvm_config.h.