Familiar functions of AD5245 for all embedded device.
More...
Go to the source code of this file.
Familiar functions of AD5245 for all embedded device.
- Parameters
-
| Project | DEVICE_GENERAL_ATY_LIB |
- Author
- ATY
- Copyright
- Copyright 2017 - 2023 MZ-ATY
- This code follows:
- Your use will be deemed to have accepted the terms of this statement.
- Version
- 1_01_220927 > ATY
- Preliminary version, first Release
Definition in file AD5245_ATY.c.
◆ __AD5245_ATY_C
◆ AD5245_SetValue()
| void AD5245_SetValue |
( |
uint8_t |
value | ) |
|
set AD5245 value
- Parameters
-
Definition at line 40 of file AD5245_ATY.c.
41{
43 data_t[0] = 0;
45
47#ifdef __DEBUG_AD5245_ATY
48 printf(
"\r\nAD5245 ResSet: %03d | %1.5fKOhm",
value, (0xFF -
value) * 1.0 * 10 / 256);
49 printf(
"\r\nAD5245 set: %03d | %03d", data_t[0], data_t[1]);
50#endif
51#ifdef AD5245_READBACK
53#endif
54#ifdef __DEBUG_AD5245_ATY
55 printf(
"\r\nAD5245 receive: %03d | %03d", data_t[0], data_t[1]);
56#endif
57}
__WEAK_ATY void printf(uint8_t *,...)
uint8_t I2C_Read(uint8_t devAddr, uint8_t memAddr, uint8_t *buf, uint16_t size)
uint8_t I2C_Write(uint8_t devAddr, uint8_t memAddr, uint8_t *dat, uint16_t size)