public class BatteryInterface
extends java.lang.Object
Constructor and Description |
---|
BatteryInterface() |
Modifier and Type | Method and Description |
---|---|
static int |
close()
Close the battery device.
|
static int |
open()
Open the battery device.
|
static int |
queryInfo(int[] capacity,
int[] voltage)
Get the capacity and voltage of the battery device.
|
public static int open()
public static int close()
public static int queryInfo(int[] capacity, int[] voltage)
capacity:
- battery capacity data buffervoltage:
- battery voltage data buffer