battery.h 436 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (C) 2012 Samsung Electronics
  3. * Lukasz Majewski <l.majewski@samsung.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __POWER_BATTERY_H_
  8. #define __POWER_BATTERY_H_
  9. struct battery {
  10. unsigned int version;
  11. unsigned int state_of_chrg;
  12. unsigned int time_to_empty;
  13. unsigned int capacity;
  14. unsigned int voltage_uV;
  15. unsigned int state;
  16. };
  17. int power_bat_init(unsigned char bus);
  18. #endif /* __POWER_BATTERY_H_ */