summaryrefslogtreecommitdiff
path: root/include/battery_bq27621_g1.h
blob: 019a9d2fe4443dd93bd51e4acf994c5d453be6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright 2014 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * Battery driver for BQ27621-G1
 */

/* Sets percent to the battery life as a percentage (0-100)
 *
 * Returns EC_SUCCESS on success.
 */
int bq27621_state_of_charge(int *percent);

/* Initializes the fuel gauge with the constants for the battery.
 *
 * Returns EC_SUCCESS on success.
 */
int bq27621_init(void);