Ocean
|
This class implements battery functions. More...
Static Public Member Functions | |
static float | currentCapacity () |
Returns the current battery capacity status in percent. More... | |
static float | currentTemperature () |
Returns the current battery temperature in Celsius. More... | |
static bool | currentCurrent (double ¤t) |
Returns the current battery current in amps. More... | |
static bool | currentVoltage (double &voltage) |
Returns the current battery voltage in volts. More... | |
static bool | isCharging (bool &state) |
Returns whether the battery is charging. More... | |
Protected Types | |
using | ScopedFILE = ScopedObjectCompileTimeT< FILE *, FILE *, int, pclose, 0, false > |
Definition of a scoped object for FILE pointers. More... | |
This class implements battery functions.
|
protected |
Definition of a scoped object for FILE pointers.
|
static |
Returns the current battery capacity status in percent.
|
static |
Returns the current battery current in amps.
current | The resulting single current reading for the battery, in amps |
|
static |
Returns the current battery temperature in Celsius.
|
static |
Returns the current battery voltage in volts.
voltage | The resulting single voltage reading for the battery, in volts |
|
static |
Returns whether the battery is charging.