Midnight Sun Firmware
Loading...
Searching...
No Matches
max17261_fuel_gauge_defs.h
1#pragma once
2// reg map is on P.27:
3// https://www.analog.com/media/en/technical-documentation/user-guides/max1726x-modelgauge-m5-ez-user-guide.pdf
4typedef enum {
5 MAX17261_STATUS = 0x00,
6 MAX17261_VOLT_ALRT_THRSH,
7 MAX17261_TEMP_ALRT_THRSH,
8 MAX17261_SOC_ALRT_THRSH,
9 MAX17261_AT_RATE,
10 MAX17261_CAP,
11 MAX17261_SOC,
12 MAX17261_AGE,
13 MAX17261_TEMP,
14 MAX17261_VCELL,
15 MAX17261_CURRENT,
16 MAX17261_AVG_CURRENT,
17 MAX17261_Q_RESIDUAL,
18 MAX17261_MIX_SOC,
19 MAX17261_AV_SOC,
20 MAX17261_MIX_CAP,
21
22 MAX17261_FULL_CAP_REP = 0x10,
23 MAX17261_TIME_TO_EMPTY,
24 MAX17261_QR_TABLE00,
25 MAX17261_FULL_SOC_THRSH,
26 MAX17261_R_CELL,
27 MAX17261_AVG_TA = 0x16,
28 MAX17261_CYCLES,
29 MAX17261_DESIGN_CAP,
30 MAX17261_AVG_V_CELL,
31 MAX17261_MAX_MIN_TEMP,
32 MAX17261_MAX_MIN_VOLT,
33 MAX17261_MAX_MIN_CURR,
34 MAX17261_CONFIG,
35 MAX17261_I_CHG_TERM,
36 MAX17261_AV_CAP,
37
38 MAX17261_TIME_TO_FULL = 0x20,
39 MAX17261_DEV_NAME,
40 MAX17261_QR_TABLE10,
41 MAX17261_FULL_CAP_NOM,
42 MAX17261_AIN = 0x27,
43 MAX17261_LEARN_CFG,
44 MAX17261_FILTER_CFG,
45 MAX17261_RELAX_CFG,
46 MAX17261_MISC_CFG,
47 MAX17261_T_GAIN,
48 MAX17261_T_OFF,
49 MAX17261_C_GAIN,
50 MAX17261_C_OFF,
51
52 MAX17261_QR_TABLE20 = 0x32,
53 MAX17261_DIE_TEMP = 0x34,
54 MAX17261_FULL_CAP,
55 MAX17261_R_COMP0 = 0x38,
56 MAX17261_TEMP_CO,
57 MAX17261_V_EMPTY,
58 MAX17261_FSTAT = 0x3D,
59 MAX17261_TIMER,
60 MAX17261_SHDN_TIMER,
61
62 MAX17261_QR_TABLE30 = 0x42,
63 MAX17261_R_GAIN,
64 MAX17261_DQ_ACC = 0x45,
65 MAX17261_DP_ACC,
66 MAX17261_CONVG_CFG = 0x49,
67 MAX17261_VF_REM_CAP,
68 MAX17261_QH = 0x4D,
69
70 MAX17261_SOFT_WAKEUP = 0x60,
71
72 MAX17261_STATUS2 = 0xB0,
73 MAX17261_POWER,
74 MAX17261_ID, // UserMem2
75 MAX17261_AVG_POWER,
76 MAX17261_I_ALRT_TH,
77 MAX17261_TTF_CFG,
78 MAX17261_CV_MIX_CAP,
79 MAX17261_CV_HALF_TIME,
80 MAX17261_CG_TEMP_CO,
81 MAX17261_CURVE,
82 MAX17261_HIB_CFG,
83 MAX17261_CONFIG2,
84 MAX17261_VRIPPLE,
85 MAX17261_RIPPLE_CFG,
86 MAX17261_TIMERH,
87
88 MAX17261_RSENSE = 0xD0, // UserMem3
89 MAX17261_SC_OCV_LIM,
90 MAX17261_VGAIN,
91 MAX17261_SOC_HOLD,
92 MAX17261_MAX_PEAK_POWER,
93 MAX17261_SUS_PEAK_POWER,
94 MAX17261_PACK_RESISTANCE,
95 MAX17261_SYS_RESISTANCE,
96 MAX17261_MIN_SYS_VOLTAGE,
97 MAX17261_MPP_CURRENT,
98 MAX17261_SPP_CURRENT,
99 MAX17261_MODEL_I_CFG,
100 MAX17261_AT_Q_RESIDUAL,
101 MAX17261_AT_TTE,
102 MAX17261_AT_AV_SOC,
103 MAX17261_AT_AV_CAP,
104} Max17261Registers;