brainaccess.core.full_battery_info#
Classes#
Charge level category of the battery. |
|
Charging state of the battery. |
|
Detailed battery readings of a headset. |
Module Contents#
- class brainaccess.core.full_battery_info.EBaChargeLevel(*args, **kwds)[source]#
Bases:
enum.EnumCharge level category of the battery.
- Variables:
e_ba_charge_level_unknown (int) – The level could not be determined.
e_ba_charge_level_good (int) – The charge is sufficient.
e_ba_charge_level_low (int) – The charge is low; charge the headset soon.
e_ba_charge_level_critical (int) – The charge is critically low; the headset is about to switch off.
e_ba_charge_level_last (int) – End marker, not a level; never reported.
- class brainaccess.core.full_battery_info.EBaChargeStates(*args, **kwds)[source]#
Bases:
enum.EnumCharging state of the battery.
- Variables:
e_ba_charge_states_unknown (int) – The state could not be determined.
e_ba_charge_states_charging (int) – The battery is charging.
e_ba_charge_states_discharging_active (int) – The battery is discharging while the headset is in use.
e_ba_charge_states_discharging_inactive (int) – The battery is discharging while the headset is idle.
e_ba_charge_states_last (int) – End marker, not a state; never reported.
- class brainaccess.core.full_battery_info.FullBatteryInfo[source]#
Bases:
ctypes.StructureDetailed battery readings of a headset.
Diagnostic data; for the charge level alone use
BatteryInfo. Returned byget_full_battery_info().- Variables:
is_charger_connected (bool) –
Trueif a charger is connected.level (int) – Battery charge in percent, 0 to 100.
health (float) – Battery health in percent, 0 to 100.
voltage (float) – Battery voltage in V.
current (float) – Battery current in A: negative while discharging, positive while charging.
charge_state (EBaChargeStates) – Charging state.
charge_level (EBaChargeLevel) – Charge level category.