Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
charge_accumulator APIs

charge_accumulator API More...

Functions

int64_t auto_charge_accumulator_query (uint32_t *num_measurements)
 Get the amount of charge that has entered/exited the battery since the last call.
 

Detailed Description

charge_accumulator API

Function Documentation

◆ auto_charge_accumulator_query()

int64_t auto_charge_accumulator_query ( uint32_t * num_measurements)

#include <infuse/auto/charge_accumulator.h>

Get the amount of charge that has entered/exited the battery since the last call.

Note
Each call to this function resets the tracked charge
Parameters
num_measurementsNumber of measurements since the last call (optional)
Returns
int64_t Charge in microamp-seconds (+ve entering battery, -ve exiting battery)