Em_EEPROM Middleware Library 2.20
Macros

General Description

This section describes the Emulated EEPROM Macros.

Macros

#define CY_EM_EEPROM_MW_VERSION_MAJOR   (2)
 Library major version.
 
#define CY_EM_EEPROM_MW_VERSION_MINOR   (20)
 Library minor version.
 
#define CY_EM_EEPROM_ID   (CY_PDL_DRV_ID(0x1BuL))
 Em_EEPROM PDL ID.
 
#define CY_EM_EEPROM_ID_ERROR   ((uint32_t)(CY_EM_EEPROM_ID | CY_PDL_STATUS_ERROR))
 A prefix for Em_EEPROM function error return-values.
 
#define CY_EM_EEPROM_FLASH_SIZEOF_ROW   (CY_FLASH_SIZEOF_ROW)
 Defines the size of a flash row.
 
#define CY_EM_EEPROM_EEPROM_DATA_LEN(simpleMode)   (CY_EM_EEPROM_FLASH_SIZEOF_ROW / (2uL - (simpleMode)))
 Defines the maximum data length that can be stored in one flash row.
 
#define CY_EM_EEPROM_GET_NUM_ROWS_IN_EEPROM(dataSize, simpleMode)   ((((dataSize) - 1uL) / (CY_EM_EEPROM_EEPROM_DATA_LEN(simpleMode))) + 1uL)
 The number of flash rows required to create an Em_EEPROM of dataSize.
 
#define CY_EM_EEPROM_GET_NUM_DATA(dataSize, simpleMode)
 Defines the size of flash without wear leveling and redundant copy overhead. More...
 
#define CY_EM_EEPROM_GET_PHYSICAL_SIZE(dataSize, simpleMode, wearLeveling, redundantCopy)
 Returns the size of flash allocated for Em_EEPROM including wear leveling and a redundant copy overhead. More...
 

Macro Definition Documentation

◆ CY_EM_EEPROM_GET_NUM_DATA

#define CY_EM_EEPROM_GET_NUM_DATA (   dataSize,
  simpleMode 
)
Value:
(CY_EM_EEPROM_GET_NUM_ROWS_IN_EEPROM(dataSize, simpleMode) * \
CY_EM_EEPROM_FLASH_SIZEOF_ROW)
#define CY_EM_EEPROM_GET_NUM_ROWS_IN_EEPROM(dataSize, simpleMode)
The number of flash rows required to create an Em_EEPROM of dataSize.
Definition: cy_em_eeprom.h:978

Defines the size of flash without wear leveling and redundant copy overhead.

◆ CY_EM_EEPROM_GET_PHYSICAL_SIZE

#define CY_EM_EEPROM_GET_PHYSICAL_SIZE (   dataSize,
  simpleMode,
  wearLeveling,
  redundantCopy 
)
Value:
(CY_EM_EEPROM_GET_NUM_DATA(dataSize, simpleMode) * \
((((1uL - (simpleMode)) * (wearLeveling)) * ((redundantCopy) + 1uL)) + (simpleMode)))
#define CY_EM_EEPROM_GET_NUM_DATA(dataSize, simpleMode)
Defines the size of flash without wear leveling and redundant copy overhead.
Definition: cy_em_eeprom.h:982

Returns the size of flash allocated for Em_EEPROM including wear leveling and a redundant copy overhead.