https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 107aa7fdc0732f83c9f2996649523749898a549c authored by Daniel Fort on 01 May 2018, 19:47:47 UTC
Closed branch update-to-1200D.102-wip
Tip revision: 107aa7f
battery.h
#ifndef _battery_h_
#define _battery_h_

/* return battery level in percentage (0-100) */
int GetBatteryLevel();

/* battery ID, as registered in Canon menu */
int GetBatteryHist();

/* how many "green dots" (3 for a new battery, less for a used battery) */
int GetBatteryPerformance();

/* ML estimations */
int GetBatteryTimeRemaining();
int GetBatteryDrainRate();

/* todo: refactor this one with callbacks */
void RefreshBatteryLevel_1Hz();
#endif
back to top