AD5245_ATY.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * @file AD5245_ATY.h
  3. *
  4. * @param Project DEVICE_GENERAL_ATY_LIB
  5. *
  6. * @author ATY
  7. *
  8. * @copyright
  9. * - Copyright 2017 - 2023 MZ-ATY
  10. * - This code follows:
  11. * - MZ-ATY Various Contents Joint Statement -
  12. * <a href="https://mengze.top/MZ-ATY_VCJS">
  13. * https://mengze.top/MZ-ATY_VCJS</a>
  14. * - CC 4.0 BY-NC-SA -
  15. * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  16. * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
  17. * - Your use will be deemed to have accepted the terms of this statement.
  18. *
  19. * @brief Familiar functions of AD5245 for all embedded device
  20. *
  21. * @version
  22. * - 1_01_220927 > ATY
  23. * -# Preliminary version, first Release
  24. ********************************************************************************
  25. */
  26. #ifndef __AD5245_ATY_H
  27. #define __AD5245_ATY_H
  28. #include "INCLUDE_ATY.h"
  29. #include "HW_I2C_ATY.h"
  30. /******************************* For user *************************************/
  31. // Set AD0 voltage level for device address
  32. #define AD5245_AD0 1
  33. #define AD5245_READBACK
  34. #define __DEBUG_AD5245_ATY
  35. /******************************************************************************/
  36. // 0 1 0 1 1 0 AD0 R/W
  37. #define AD5245_ADDRESS (0x2C | AD5245_AD0)
  38. void AD5245_SetValue(uint8_t value);
  39. #endif /* __AD5245_ATY_H */
  40. /******************************** End Of File *********************************/