![]() |
nrfxlib API 3.3.99
|
| int nrf_fuel_gauge_process | ( | float | v, |
| float | i, | ||
| float | T, | ||
| float | t_delta, | ||
| float * | soc, | ||
| struct nrf_fuel_gauge_state_info * | state ) |
#include <nrf_fuel_gauge/include/nrf_fuel_gauge.h>
Process battery measurement values.
State-of-charge for primary cell battery models may be rounded off. The raw value can always be obtained from the optional state info struct.
| [in] | v | Measured battery voltage [V]. |
| [in] | i | Measured battery current [A]. |
| [in] | T | Measured battery temperature [C]. |
| [in] | t_delta | Time delta since previous processed measurement [s]. |
| [out] | soc | Pointer to predicted state-of-charge [%]. |
| [out] | state | Pointer to state info struct (optional, set to null to ignore). |
| 0 | when successful, otherwise negative error code. |