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

◆ nrf_fuel_gauge_init()

int nrf_fuel_gauge_init ( const struct nrf_fuel_gauge_init_parameters parameters,
float *  v0 
)

#include <nrf_fuel_gauge/include/nrf_fuel_gauge.h>

Initialize the nRF Fuel Gauge library.

Note
The battery model referenced in parameters must be kept valid as long as the library is in use.
Parameters
[in]parametersPointer to the parameter structure.
[out]v0Adjusted battery voltage (optional, for logging purposes).
Return values
0Initialization successful.
-22Initialization failed due to invalid parameters.