blob: 63270ae5e6f6237f5814ff6159776eca4182eb51 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#ifndef __88PM80X_TABLE_H
2#define __88PM80X_TABLE_H
3
4/* -25C ~ 60C: multipled by 10000 */
5extern const int temperature_table[];
6extern const int ocv_dischg_4v4[];
7extern const int ocv_chg_4v4[];
8extern const int ocv_dischg_4v2[];
9extern const int ocv_chg_4v2[];
10/*
11 * The rtot(Rtotal) of battery is much different in different temperature,
12 * so we introduced data in different temperature, the typical sample point
13 * of temperature are -5/10/25/40 C.
14 * For charging case, we support the data of charging current of 1200 mA
15 * in those temperatures, so we have 4 table for it.
16 * For discharging case, we have data 500/1000/1500 mA discharging current
17 * case, then we have 12 tables for it.
18 */
19extern const int rtot_tm20_i0p1[];
20extern const int rtot_tm20_i0p3[];
21extern const int rtot_tm20_i0p5[];
22extern const int rtot_tm20_i0p7[];
23extern const int rtot_tm20_i1p0[];
24extern const int rtot_tm20_i1p5[];
25extern const int rtot_tm5_i0p1[];
26extern const int rtot_tm5_i0p3[];
27extern const int rtot_tm5_i0p5[];
28extern const int rtot_tm5_i0p7[];
29extern const int rtot_tm5_i1p0[];
30extern const int rtot_tm5_i1p5[];
31extern const int rtot_tm5_i0p13c[];
32extern const int rtot_tm5_i0p3c[];
33extern const int rtot_tm5_i0p5c[];
34extern const int rtot_tm5_i0p7c[];
35extern const int rtot_tm5_i1p0c[];
36extern const int rtot_t10_i0p1[];
37extern const int rtot_t10_i0p3[];
38extern const int rtot_t10_i0p5[];
39extern const int rtot_t10_i0p7[];
40extern const int rtot_t10_i1p0[];
41extern const int rtot_t10_i1p5[];
42extern const int rtot_t10_i0p13c[];
43extern const int rtot_t10_i0p3c[];
44extern const int rtot_t10_i0p5c[];
45extern const int rtot_t10_i0p7c[];
46extern const int rtot_t10_i1p0c[];
47extern const int rtot_t25_i0p1[];
48extern const int rtot_t25_i0p3[];
49extern const int rtot_t25_i0p5[];
50extern const int rtot_t25_i0p7[];
51extern const int rtot_t25_i1p0[];
52extern const int rtot_t25_i1p5[];
53extern const int rtot_t25_i0p13c[];
54extern const int rtot_t25_i0p3c[];
55extern const int rtot_t25_i0p5c[];
56extern const int rtot_t25_i0p7c[];
57extern const int rtot_t25_i1p0c[];
58extern const int rtot_t40_i0p1[];
59extern const int rtot_t40_i0p3[];
60extern const int rtot_t40_i0p5[];
61extern const int rtot_t40_i0p7[];
62extern const int rtot_t40_i1p0[];
63extern const int rtot_t40_i1p5[];
64extern const int rtot_t40_i0p13c[];
65extern const int rtot_t40_i0p3c[];
66extern const int rtot_t40_i0p5c[];
67extern const int rtot_t40_i0p7c[];
68extern const int rtot_t40_i1p0c[];
69extern const int *dis_chg_rtot[6][5];
70extern const int dischg_ib[6];
71extern const int *chg_rtot[5][4];
72extern const int chg_ib[5];
73#endif