This is a library for the MAX17055 Li+ Battery Fuel Gauge.
Dependents: Low_Power_Long_Distance_IR_Vision_Robot MAX17055_EZconfig MAX17055_EZconfig_Sample Low_Power_Long_Distance_IR_Vision_Robot
Fork of max17055 by
Diff: max17055.cpp
- Revision:
- 22:607f6917832a
- Parent:
- 20:dcb0e5893677
diff -r 441840cc7423 -r 607f6917832a max17055.cpp --- a/max17055.cpp Tue Oct 23 22:50:58 2018 +0000 +++ b/max17055.cpp Tue Oct 23 23:07:56 2018 +0000 @@ -434,7 +434,7 @@ * @brief Get reported Battery Capacity Function from MAX17055 Fuel Gauge * @par Details * This function sends a request to access the RepCAP register - * of the MAX17055. RepCAP is the reported Battery Capacity in mAh of the battery based on the calulation by the Fuel Gauge algorithm. + * of the MAX17055. RepCAP is the reported Battery Capacity in mAh of the battery based on the calculation by the Fuel Gauge algorithm. * * @retval repcap_data - Reported SOC data from the RepSOC register in % value. * @retval non-0 negative values check for errors @@ -778,8 +778,8 @@ * time bit 2 of the Cycles register toggles * (so that it is saved every 64% change in the battery) * so that if power is lost the values can easily be restored. Make sure - * the data is saved on a non-volatile memory. Call this functinton after first initialization for reference in future function calls. - * Max muber of cycles is 655.35 cycles with a LSB of 1% for the cycles register. + * the data is saved on a non-volatile memory. Call this function after first initialization for reference in future function calls. + * Max number of cycles is 655.35 cycles with a LSB of 1% for the cycles register. * * @param[in] FG_params Fuel Gauge Parameters based on design details. * @@ -790,7 +790,7 @@ { int ret; uint16_t data[5], value; - ///STEP 1. Checks if the cycel register bit 2 has changed. + ///STEP 1. Checks if the cycle register bit 2 has changed. ret = readReg(CYCLES_REG, data[3]); value = data[3]; if (ret < F_SUCCESS_0)