lsm_battery_status_get man page
lsm_battery_status_get — Retrieves status of the battery.
uint64_t lsm_battery_status_get (lsm_battery *b);
Battery to retrieve status for.
Retrieves status of the battery.
uint64_t. Status of the specified battery which is a bit sensitive field. Possible values are:
Unknown or invalid lsm_battery pointer.
Vendor specific status.
Battery is healthy and charged.
Battery is disconnected from power source and discharging.
Battery is not fully charged and charging.
System is trying to discharge and recharge the battery to
learn its capability.
Battery is degraded and should be checked or replaced.
Battery is dead and should be replaced.