/** * @file AD5245_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 AD5245 for all embedded device * * @version * - 1_01_220927 > ATY * -# Preliminary version, first Release ******************************************************************************** */ #ifndef __AD5245_ATY_H #define __AD5245_ATY_H #include "INCLUDE_ATY.h" #include "HW_I2C_ATY.h" /******************************* For user *************************************/ // Set AD0 voltage level for device address #define AD5245_AD0 1 #define AD5245_READBACK #define __DEBUG_AD5245_ATY /******************************************************************************/ // 0 1 0 1 1 0 AD0 R/W #define AD5245_ADDRESS (0x2C | AD5245_AD0) void AD5245_SetValue(uint8_t value); #endif /* __AD5245_ATY_H */ /******************************** End Of File *********************************/