A feature complete driver for the MAX17048 lithium fuel gauge from Maxim.
Dependents: MAX17048_HelloWorld ECGAFE_copy MAX17048_HelloWorld Orion_newPCB_test_LV ... more
Now fully tested!
Diff: MAX17048.cpp
- Revision:
- 10:4f695111eb54
- Parent:
- 9:2c1d82ecd63c
--- a/MAX17048.cpp Fri May 02 17:28:52 2014 +0000 +++ b/MAX17048.cpp Fri May 30 19:02:51 2014 +0000 @@ -507,6 +507,7 @@ return value * 0.208; } +#ifdef MBED_OPERATORS MAX17048::operator float() { //Return the current floating point SOC reading @@ -518,6 +519,7 @@ //Return the current integer SOC reading return soc_int(); } +#endif unsigned short MAX17048::read(char reg) {