Jamie Smith
/
BQ34Z100G1-Utils
Utility library for testing and calibrating the BQ34Z100-G1 fuel gauge IC.
Embed:
(wiki syntax)
Show/hide line numbers
BQ34Z100G1-Utils.h
00001 /* 00002 USC RPL HAMSTER v2.3 BQ34Z100 Test Suite 00003 Contributors: Arpad Kovesdy 00004 */ 00005 00006 #pragma once 00007 00008 #include "BQ34Z100.h" 00009 #include "mbed.h" 00010 00011 BQ34Z100 soc(I2C_SDA, I2C_SCL, 10000); 00012 00013 class BQ34Utils { 00014 public: 00015 void outputStatus(); 00016 void sensorReset(); 00017 void displayData(); 00018 void testICConnection(); 00019 void startCal(); 00020 void stopCal(); 00021 void startIt(); 00022 void writeSettings(); 00023 void calibrateVoltage(); 00024 void calibrateCurrent(); 00025 void resetVoltageCalibration(); 00026 void testFloatConversion(); 00027 void readVoltageCurrent(); 00028 00029 private: 00030 void outputFlashInt(uint8_t* flash, int index, int len); 00031 };
Generated on Sun Jul 17 2022 10:02:44 by 1.7.2