-
1. Re: Emulated EEPROM:cy_en_eeprom_return_value_t EmEEPROM_1_Init (uint32 startAddress)
HimaM_31 Jan 22, 2018 9:52 PM (in response to ichirou.tokuda_1583401)1 of 1 people found this helpfulHello,
1)The return value of EEPROM_Init() is 'cy_en_em_eeprom_status_t'. This is an enumerated datatype with the following definition. Basically it returns the status.The return value must be "CY_EM_EEPROM_SUCCESS" for proper operation.
/** EEPROM return enumeration type */
typedef enum
{
CY_EM_EEPROM_SUCCESS = 0x00uL, /**< The function executed successfully */
CY_EM_EEPROM_BAD_PARAM = (CY_EM_EEPROM_ID_ERROR + 1uL), /**< The input parameter is invalid */
CY_EM_EEPROM_BAD_CHECKSUM = (CY_EM_EEPROM_ID_ERROR + 2uL), /**< The data in EEPROM is corrupted */
CY_EM_EEPROM_BAD_DATA = (CY_EM_EEPROM_ID_ERROR + 3uL), /**< Failed to place the EEPROM in flash */
CY_EM_EEPROM_WRITE_FAIL = (CY_EM_EEPROM_ID_ERROR + 4uL) /**< Write to EEPROM failed */
} cy_en_em_eeprom_status_t;
For all other functions also return value is with enumerated datatype cy_en_em_eeprom_status_t as explained above on section (1).
Please let me know if this helps.
Thanks,
Hima
-
2. Re: Emulated EEPROM:cy_en_eeprom_return_value_t EmEEPROM_1_Init (uint32 startAddress)
ichirou.tokuda_1583401 Jan 23, 2018 3:27 PM (in response to HimaM_31)Hi.Hima san
Thank you for your reply.
I understand that.
Thank you very much.
Ichiro.