brainaccess.core.full_battery_info#
Classes#
Enumeration of the battery charge levels. |
|
Enumeration of the possible battery charging states. |
|
Provides comprehensive information about the device's battery. |
Module Contents#
- class brainaccess.core.full_battery_info.EBaChargeLevel(*args, **kwds)[source]#
Bases:
enum.EnumEnumeration of the battery charge levels.
- class brainaccess.core.full_battery_info.EBaChargeStates(*args, **kwds)[source]#
Bases:
enum.EnumEnumeration of the possible battery charging states.
- class brainaccess.core.full_battery_info.FullBatteryInfo[source]#
Bases:
ctypes.StructureProvides comprehensive information about the device’s battery.
This class extends the basic battery info with more detailed metrics such as health, voltage, and current, providing a complete picture of the battery’s status.
- is_charger_connected#
True if a charger is connected to the device.
- Type:
bool
- level#
The battery charge percentage (0-100).
- Type:
int
- health#
The battery health percentage (0-100).
- Type:
float
- voltage#
The battery voltage in volts.
- Type:
float
- current#
The current flow in amps (negative for discharge, positive for charge).
- Type:
float
- Initialize self. See help(type(self)) for accurate signature.