b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | #ifndef __88PM80X_TABLE_H |
| 2 | #define __88PM80X_TABLE_H |
| 3 | |
| 4 | /* -25C ~ 60C: multipled by 10000 */ |
| 5 | extern const int temperature_table[]; |
| 6 | extern const int ocv_dischg_4v4[]; |
| 7 | extern const int ocv_chg_4v4[]; |
| 8 | extern const int ocv_dischg_4v2[]; |
| 9 | extern 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 | */ |
| 19 | extern const int rtot_tm20_i0p1[]; |
| 20 | extern const int rtot_tm20_i0p3[]; |
| 21 | extern const int rtot_tm20_i0p5[]; |
| 22 | extern const int rtot_tm20_i0p7[]; |
| 23 | extern const int rtot_tm20_i1p0[]; |
| 24 | extern const int rtot_tm20_i1p5[]; |
| 25 | extern const int rtot_tm5_i0p1[]; |
| 26 | extern const int rtot_tm5_i0p3[]; |
| 27 | extern const int rtot_tm5_i0p5[]; |
| 28 | extern const int rtot_tm5_i0p7[]; |
| 29 | extern const int rtot_tm5_i1p0[]; |
| 30 | extern const int rtot_tm5_i1p5[]; |
| 31 | extern const int rtot_tm5_i0p13c[]; |
| 32 | extern const int rtot_tm5_i0p3c[]; |
| 33 | extern const int rtot_tm5_i0p5c[]; |
| 34 | extern const int rtot_tm5_i0p7c[]; |
| 35 | extern const int rtot_tm5_i1p0c[]; |
| 36 | extern const int rtot_t10_i0p1[]; |
| 37 | extern const int rtot_t10_i0p3[]; |
| 38 | extern const int rtot_t10_i0p5[]; |
| 39 | extern const int rtot_t10_i0p7[]; |
| 40 | extern const int rtot_t10_i1p0[]; |
| 41 | extern const int rtot_t10_i1p5[]; |
| 42 | extern const int rtot_t10_i0p13c[]; |
| 43 | extern const int rtot_t10_i0p3c[]; |
| 44 | extern const int rtot_t10_i0p5c[]; |
| 45 | extern const int rtot_t10_i0p7c[]; |
| 46 | extern const int rtot_t10_i1p0c[]; |
| 47 | extern const int rtot_t25_i0p1[]; |
| 48 | extern const int rtot_t25_i0p3[]; |
| 49 | extern const int rtot_t25_i0p5[]; |
| 50 | extern const int rtot_t25_i0p7[]; |
| 51 | extern const int rtot_t25_i1p0[]; |
| 52 | extern const int rtot_t25_i1p5[]; |
| 53 | extern const int rtot_t25_i0p13c[]; |
| 54 | extern const int rtot_t25_i0p3c[]; |
| 55 | extern const int rtot_t25_i0p5c[]; |
| 56 | extern const int rtot_t25_i0p7c[]; |
| 57 | extern const int rtot_t25_i1p0c[]; |
| 58 | extern const int rtot_t40_i0p1[]; |
| 59 | extern const int rtot_t40_i0p3[]; |
| 60 | extern const int rtot_t40_i0p5[]; |
| 61 | extern const int rtot_t40_i0p7[]; |
| 62 | extern const int rtot_t40_i1p0[]; |
| 63 | extern const int rtot_t40_i1p5[]; |
| 64 | extern const int rtot_t40_i0p13c[]; |
| 65 | extern const int rtot_t40_i0p3c[]; |
| 66 | extern const int rtot_t40_i0p5c[]; |
| 67 | extern const int rtot_t40_i0p7c[]; |
| 68 | extern const int rtot_t40_i1p0c[]; |
| 69 | extern const int *dis_chg_rtot[6][5]; |
| 70 | extern const int dischg_ib[6]; |
| 71 | extern const int *chg_rtot[5][4]; |
| 72 | extern const int chg_ib[5]; |
| 73 | #endif |