/**
* @file STC8G_EEPROM_IAP_ATY.h
*
* @param Project DEVICE_GENERAL_ATY_LIB
*
* @author ATY
*
* @copyright
* - Copyright 2017 - 2023 MZ-ATY
* - This code follows:
* - MZ-ATY Various Contents Joint Statement -
*
* https://mengze.top/MZ-ATY_VCJS
* - CC 4.0 BY-NC-SA -
*
* https://creativecommons.org/licenses/by-nc-sa/4.0/
* - Your use will be deemed to have accepted the terms of this statement.
*
* @brief Familiar functions of EEPROM_IAP for STC51
*
* @version
* - 1_01_230114 > ATY
* -# Preliminary version, first Release
********************************************************************************
*/
#ifndef __STC8G_EEPROM_IAP_ATY_H
#define __STC8G_EEPROM_IAP_ATY_H
#include "INCLUDE_ATY.h"
/******************************* For user *************************************/
#define __DEBUG_STC8G_EEPROM_IAP_ATY
// #define EEPROM_USE_MOVC // use MOVC to read
/******************************************************************************/
void IAP_Idle(void);
void IAP_Erase(uint16_t addr);
uint8_t IAP_ReadByte(uint16_t addr);
void IAP_WriteByte(uint16_t addr, uint8_t dataByte);
float IAP_ReadFloat(uint16_t addr);
void IAP_WriteFloat(uint16_t addr, float dataFloat);
#ifdef __DEBUG_STC8G_EEPROM_IAP_ATY
void IAP_Test(void);
#endif /* __DEBUG_STC8G_EEPROM_IAP_ATY */
#endif /* __STC8G_EEPROM_IAP_ATY_H */
/******************************** End Of File *********************************/