File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,33 @@ class MAX1726Driver {
13
13
private:
14
14
TwoWire *wire;
15
15
uint8_t i2cAddress;
16
+ /* *
17
+ * Enables or disables the hibernate mode.
18
+ *
19
+ * @param enabled - true to enable hibernate mode, false to disable it.
20
+ */
16
21
void setHibernateModeEnabled (bool enabled);
17
22
public:
23
+ /* *
24
+ * Checks if the charging process is complete.
25
+ *
26
+ * @return true if the charging process is complete, false otherwise.
27
+ */
18
28
bool chargingComplete ();
29
+ /* *
30
+ * Sets the operation mode of the Fuel Gauge.
31
+ *
32
+ * @param mode The operation mode to set. Possible values are: hibernate, shutdown, active.
33
+ * @return True if the operation mode was set successfully, false otherwise.
34
+ */
19
35
bool setOperationMode (FuelGaugeOperationMode mode);
36
+
37
+ /* *
38
+ * @brief Constructs a new MAX1726Driver object.
39
+ *
40
+ * @param wire Pointer to the TwoWire object for I2C communication.
41
+ * @param i2cAddress The I2C address of the MAX1726 device. The default value is 0x36.
42
+ */
20
43
MAX1726Driver (TwoWire *wire, uint8_t i2cAddress);
21
44
~MAX1726Driver ();
22
45
};
You can’t perform that action at this time.
0 commit comments