1 of 1 people found this helpful
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 */
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 */
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.
Thank you for your reply.
I understand that.
Thank you very much.