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

◆ lock_func

int(* nrf_fuel_gauge_init_parameters::lock_func) (const void *context, bool lock)

Optional lock function for synchronizing access to library state when using the library from multiple contexts. Set to NULL when not used.

Parameters
contextContext pointer provided to the lock function.
lockWhen true, the function should acquire the lock. Otherwise release it.
Return values
0if lock/unlock successful, negative error code if failed.