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

◆ nrf_fuel_gauge_state_get()

int nrf_fuel_gauge_state_get ( void * state,
size_t size )

#include <nrf_fuel_gauge/include/nrf_fuel_gauge.h>

Retrieve library state data.

The state data can be stored in persistent storage during a period of no RAM retention, and later used to resume the library from the same state.

Parameters
[out]stateMemory to copy state into.
[in]sizeSize of buffer. Must be at least nrf_fuel_gauge_state_size.
Return values
0when successful, otherwise negative error code.