This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
尊敬的先生/女士
我想计算4字节 BQ76952 IC 4字节的 CRC 函数。 我从事 i2c 通信。 这也在示例代码中,但在示例代码中没有给出 CRC 的计算。 请帮我。
您好、 Alok
尚未向演示代码添加 CRC 函数。
但演示代码中已经有 CRC 校验 API 了。
Checksum(unsigned char *ptr, unsigned char len) CRC8(unsigned char *ptr, unsigned char len)
您能否尝试自行添加此函数。
您需要执行的另一个步骤是通过 I2C 启用 BQ 的 CRC。
请参阅 BQ 的数据表: https://www.ti.com/lit/ds/symlink/bq76952.pdf
此函数将在接下来的几个月内添加到 SDK 中。
如果在添加 CRC 功能时遇到任何问题、请与我联系。
此致、
赫利克