33 enum MultiFunctionPinMode: uint32_t
42 enum FuelgaugeChemistry: uint32_t
44 FG_CHEM_LEAD_FLOODED = 0,
52 enum LogMode: uint32_t
54 LOG_MODE_DISABLED = 0,
65 enum TimeZone: uint32_t
67 TZ_AMERICA_ATLANTIC = 0,
68 TZ_AMERICA_EASTERN = 1,
69 TZ_AMERICA_CENTRAL = 2,
70 TZ_AMERICA_MOUNTAIN = 3,
71 TZ_AMERICA_PACIFIC_NO_DST = 4,
72 TZ_AMERICA_PACIFIC = 5,
73 TZ_AMERICA_ALASKA = 6,
74 TZ_AMERICA_HAWAII = 7,
76 TZ_AMERICA_CHAMORO = 9,
77 TZ_EUROPE_WESTERN = 10,
78 TZ_EUROPE_CENTRAL = 11,
79 TZ_EUROPE_EASTERN = 12,
83 static const char* timeZones[14];
85 void setMfMode(MultiFunctionPinMode mode);
86 MultiFunctionPinMode getMfMode(
void)
const;
88 void setWiFiKeepAPOn(
bool state);
89 bool getWiFiKeepAPOn(
void)
const;
91 void setWiFiDisablePowerSaving(
bool state);
92 bool getWiFiDisablePowerSaving(
void)
const;
94 void setWiFiWatchdogEnable(
bool state);
95 bool getWiFiWatchdogEnable(
void)
const;
97 void setNoInternetEnable(
bool state);
98 bool getNoInternetEnable(
void)
const;
100 void setNtpEnable(
bool state);
101 bool getNtpEnable(
void)
const;
103 void setTimeZone(TimeZone tz);
104 TimeZone getTimeZone(
void)
const;
106 void setEthKeepLinkLedOn(
bool state);
107 bool getEthKeepLinkLedOn(
void)
const;
109 void setEngineShuntVdropNom(uint8_t mv);
110 uint8_t getEngineShuntVdropNom(
void)
const;
112 void setEngineShuntCurrentNom(uint16_t amperes);
113 uint16_t getEngineShuntCurrentNom(
void)
const;
115 void setEngineShuntCurrentMax(uint16_t amperes);
116 uint16_t getEngineShuntCurrentMax(
void)
const;
118 void setEngineDisableV2(
bool state);
119 bool getEngineDisableV2(
void)
const;
121 void setEngineCurrentSignFlip(
bool state);
122 bool getEngineCurrentSignFlip(
void)
const;
124 void setEngineMeterVoltageSource(uint8_t source);
125 uint8_t getEngineMeterVoltageSource(
void)
const;
127 void setOcInitialState(
bool state);
128 bool getOcInitialState(
void)
const;
130 void setOcInvertOutput(
bool state);
131 bool getOcInvertOutput(
void)
const;
133 void setOcLatchRelayOn(
bool state);
134 bool getOcLatchRelayOn(
void)
const;
136 void setOcConnectFilter(uint32_t filter_ms);
137 uint32_t getOcConnectFilter(
void)
const;
139 void setOcLvdEnable(
bool state);
140 bool getOcLvdEnable(
void)
const;
142 void setOcLvdSource(uint8_t source);
143 uint8_t getOcLvdSource(
void)
const;
145 void setOcLvdDisconnectThreshold(
float threshold);
146 float getOcLvdDisconnectThreshold(
void)
const;
148 void setOcLvdConnectThreshold(
float threshold);
149 float getOcLvdConnectThreshold(
void)
const;
151 void setOcLvdDisconnectFilter(uint32_t filter_ms);
152 uint32_t getOcLvdDisconnectFilter(
void)
const;
154 void setOcHvdEnable(
bool state);
155 bool getOcHvdEnable(
void)
const;
157 void setOcHvdSource(uint8_t source);
158 uint8_t getOcHvdSource(
void)
const;
160 void setOcHvdDisconnectThreshold(
float threshold);
161 float getOcHvdDisconnectThreshold(
void)
const;
163 void setOcHvdConnectThreshold(
float threshold);
164 float getOcHvdConnectThreshold(
void)
const;
166 void setOcHvdDisconnectFilter(uint32_t filter_ms);
167 uint32_t getOcHvdDisconnectFilter(
void)
const;
169 void setOcOcdEnable(
bool state);
170 bool getOcOcdEnable(
void)
const;
172 void setOcOcdSource(uint8_t source);
173 uint8_t getOcOcdSource(
void)
const;
175 void setOcOcdTripThreshold(
float threshold);
176 float getOcOcdTripThreshold(
void)
const;
178 void setOcOcdTripFilter(uint32_t filter_ms);
179 uint32_t getOcOcdTripFilter(
void)
const;
181 void setOcLtdEnable(
bool state);
182 bool getOcLtdEnable(
void)
const;
184 void setOcLtdDisconnectThreshold(int8_t threshold);
185 int8_t getOcLtdDisconnectThreshold(
void)
const;
187 void setOcLtdConnectThreshold(int8_t threshold);
188 int8_t getOcLtdConnectThreshold(
void)
const;
190 void setOcLtdDisconnectFilter(uint32_t filter_ms);
191 uint32_t getOcLtdDisconnectFilter(
void)
const;
193 void setOcHtdEnable(
bool state);
194 bool getOcHtdEnable(
void)
const;
196 void setOcHtdDisconnectThreshold(int8_t threshold);
197 int8_t getOcHtdDisconnectThreshold(
void)
const;
199 void setOcHtdConnectThreshold(int8_t threshold);
200 int8_t getOcHtdConnectThreshold(
void)
const;
202 void setOcHtdDisconnectFilter(uint32_t filter_ms);
203 uint32_t getOcHtdDisconnectFilter(
void)
const;
205 void setOcFgdConnectEnable(
bool state);
206 bool getOcFgdConnectEnable(
void)
const;
208 void setOcFgdDisconnectEnable(
bool state);
209 bool getOcFgdDisconnectEnable(
void)
const;
211 void setOcFgdConnectThreshold(uint8_t threshold);
212 uint8_t getOcFgdConnectThreshold(
void)
const;
214 void setOcFgdDisconnectThreshold(uint8_t threshold);
215 uint8_t getOcFgdDisconnectThreshold(
void)
const;
217 void setOcAutoOnTimer(uint32_t timer_sec);
218 uint32_t getOcAutoOnTimer(
void)
const;
220 void setOcAutoOffTimer(uint32_t timer_sec);
221 uint32_t getOcAutoOffTimer(
void)
const;
223 void setOcGenControlEnable(
bool state);
224 bool getOcGenControlEnable(
void)
const;
226 void setOcGenVonEnable(
bool state);
227 bool getOcGenVonEnable(
void)
const;
229 void setOcGenVoffEnable(
bool state);
230 bool getOcGenVoffEnable(
void)
const;
232 void setOcGenSoconEnable(
bool state);
233 bool getOcGenSoconEnable(
void)
const;
235 void setOcGenSocoffEnable(
bool state);
236 bool getOcGenSocoffEnable(
void)
const;
238 void setOcGenVoltageSource(uint8_t source);
239 uint8_t getOcGenVoltageSource(
void)
const;
241 void setOcGenVonThreshold(
float threshold);
242 float getOcGenVonThreshold(
void)
const;
244 void setOcGenVoffThreshold(
float threshold);
245 float getOcGenVoffThreshold(
void)
const;
247 void setOcGenSoconThreshold(uint8_t threshold);
248 uint8_t getOcGenSoconThreshold(
void)
const;
250 void setOcGenSocoffThreshold(uint8_t threshold);
251 uint8_t getOcGenSocoffThreshold(
void)
const;
253 void setOcGenVonFilter(uint32_t filter_ms);
254 uint32_t getOcGenVonFilter(
void)
const;
256 void setOcGenTurnOffDelay(uint16_t delay_min);
257 uint16_t getOcGenTurnOffDelay(
void)
const;
259 void setOcLiFePOEnable(
bool state);
260 bool getOcLiFePOEnable(
void)
const;
262 void setOcLiFePODesignCapacity(
float capacity);
263 float getOcLiFePODesignCapacity(
void)
const;
265 void setOcLiFePOCellCount(uint8_t count);
266 uint8_t getOcLiFePOCellCount(
void)
const;
268 void setFgEnable(
bool state);
269 bool getFgEnable(
void)
const;
271 void setFgChemistry(FuelgaugeChemistry chemistry);
272 FuelgaugeChemistry getFgChemistry(
void)
const;
274 void setFgCellCount(uint8_t count);
275 uint8_t getFgCellCount(
void)
const;
277 void setFgVoltageSource(uint8_t source);
278 uint8_t getFgVoltageSource(
void)
const;
280 void setFgDesignCapacity(
float capacity);
281 float getFgDesignCapacity(
void)
const;
283 void setFgManualChargeDetectionEnable(
bool state);
284 bool getFgManualChargeDetectionEnable(
void)
const;
286 void setFgSyncVoltageThreshold(
float threshold);
287 float getFgSyncVoltageThreshold(
void)
const;
289 void setFgSyncCurrentThreshold(
float threshold);
290 float getFgSyncCurrentThreshold(
void)
const;
292 void setFgSyncFilter(uint32_t filter_ms);
293 uint32_t getFgSyncFilter(
void)
const;
295 void setLogMode(LogMode mode);
296 LogMode getLogMode(
void)
const;
299 uint8_t mRawConfig[104]
alignas(4);