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.

[参考译文] Linux/BQ27426:如何读取 R0-R15

Guru**** 2341440 points
Other Parts Discussed in Thread: BQ27426
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/613076/linux-bq27426-how-to-read-r0-r15

器件型号:BQ27426

工具/软件:Linux

有人能否举例说明如何使用 Bqtool 从 BQ27426电量监测计读取寄存器。  我们可以使用此工具对电量监测计进行编程、但现在我们尝试读取 R0-R15动态寄存器值。 因此、BQtool 命令的一个示例会很有帮助。

谢谢

Michael

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我没有 bqTool 的命令语法、但下面是读取 Ra0-Ra14的通信序列:

    1、从寄存器0x3E 开始写入0x59 0x00。 这将选择 Ra 表数据类、块0

    2.从寄存器0x40开始读取30个字节、自动递增。

    R0 =前两个字节
    R1 =接下来的两个字节

    不会

    格式为大端字节序整数。