brainaccess.core.battery_info#
Classes#
Provides essential information about the device's battery status. |
Module Contents#
- class brainaccess.core.battery_info.BatteryInfo[source]#
Bases:
ctypes.StructureProvides essential information about the device’s battery status.
This class includes the current charge level, whether a charger is connected, and if the battery is actively charging. This is useful for monitoring the device’s power state and ensuring it remains operational during data acquisition.
- level#
The battery charge percentage, ranging from 0 to 100.
- Type:
int
- is_charger_connected#
True if a charger is connected to the device, False otherwise.
- Type:
bool
- is_charging#
True if the battery is currently charging, False otherwise.
- Type:
bool
- Initialize self. See help(type(self)) for accurate signature.