Utility library for testing and calibrating the BQ34Z100-G1 fuel gauge IC.
Utils library for our BQ34Z100G1 driver. See https://os.mbed.com/users/MultipleMonomials/code/BQ34Z100G1/wiki/Setup-and-Calibration-Guide
New releases of this code have moved to GitHub: https://github.com/USCRPL/BQ34Z100G1-Utils
Diff: BQ34Z100G1-Utils.h
- Revision:
- 0:fcd2c91c4626
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BQ34Z100G1-Utils.h Sun Feb 07 14:21:20 2021 -0800 @@ -0,0 +1,31 @@ +/* + USC RPL HAMSTER v2.3 BQ34Z100 Test Suite + Contributors: Arpad Kovesdy +*/ + +#pragma once + +#include "BQ34Z100.h" +#include "mbed.h" + +BQ34Z100 soc(I2C_SDA, I2C_SCL, 10000); + +class BQ34Utils { +public: + void outputStatus(); + void sensorReset(); + void displayData(); + void testICConnection(); + void startCal(); + void stopCal(); + void startIt(); + void writeSettings(); + void calibrateVoltage(); + void calibrateCurrent(); + void resetVoltageCalibration(); + void testFloatConversion(); + void readVoltageCurrent(); + +private: + void outputFlashInt(uint8_t* flash, int index, int len); +};