nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_fuel_gauge_process()

float nrf_fuel_gauge_process ( float  v,
float  i,
float  T,
float  t_delta,
bool  vbus_present,
struct nrf_fuel_gauge_state_info state 
)

#include <nrf_fuel_gauge/include/nrf_fuel_gauge.h>

Process battery measurement values.

Parameters
vMeasured battery voltage [V].
iMeasured battery current [A].
TMeasured battery temperature [C].
t_deltaTime delta since previous processed measurement [s].
vbus_presentTrue if vbus voltage is present, for devices that supports this.
statePointer to state info struct (optional, set to null to ignore).
Return values
Predictedstate-of-charge [%].