You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The power() function is reading 2 bytes so which 2 bytes it is reading (Hibernate I at offset 7 or Hibernate V at offset 9)?
In the BQ27441_Basic.ino how can, it is reporting power in mW just by reading Hibernate I or Hibernate V? int power = lipo.power(); // Read average power draw (mW)
If I want to see both the Hibernate I at offset 7 and Hibernate V at offset 9, how should I modify the library to print the individual data of Hibernate I at offset 7 and Hibernate V at offset 9 and also the power?
Please correct me if I am wrong. Thanks for your time.
The text was updated successfully, but these errors were encountered:
Hello,
From the manual page 29 https://www.ti.com/lit/ug/sluuac9a/sluuac9a.pdf?ts=1594252976133&ref_url=https%253A%252F%252Fwww.google.com%252F I see that power is under Subclass 68, and hibernate I and V can be read from offset 7 and 9. Now in the example BQ27441_Basic, power data is got by calling the function power() which is as following:
int16_t BQ27441::power(void) { return (int16_t) readWord(BQ27441_COMMAND_AVG_POWER); }
The readword() and i2cReadBytes() functions are as following:
My questions are:
The power() function is reading 2 bytes so which 2 bytes it is reading (Hibernate I at offset 7 or Hibernate V at offset 9)?
In the BQ27441_Basic.ino how can, it is reporting power in mW just by reading Hibernate I or Hibernate V?
int power = lipo.power(); // Read average power draw (mW)
If I want to see both the Hibernate I at offset 7 and Hibernate V at offset 9, how should I modify the library to print the individual data of Hibernate I at offset 7 and Hibernate V at offset 9 and also the power?
Please correct me if I am wrong. Thanks for your time.
The text was updated successfully, but these errors were encountered: