nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_fuel_gauge_process()

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.

Parameters
[in]vMeasured battery voltage [V].
[in]iMeasured battery current [A].
[in]TMeasured battery temperature [C].
[in]t_deltaTime delta since previous processed measurement [s].
[out]socPointer to predicted state-of-charge [%].
[out]statePointer to state info struct (optional, set to null to ignore).
Return values
0when successful, otherwise negative error code.