[riot-notifications] [RIOT-OS/RIOT] drivers: add bq2429x power management IC driver (#15523)

Jean Pierre Dudey notifications at github.com
Mon Jan 18 10:01:40 CET 2021

@jeandudey commented on this pull request.

> +typedef enum {
+    BQ2429x_CHRG_FAULT_NORMAL = 0,              /**< No fault, normal */
+    BQ2429x_CHRG_FAULT_INPUT,                   /**< Input fault (OVP or bad
+                                                     source) */
+    BQ2429x_CHRG_FAULT_THERMAL_SHUTDOWN,        /**< Thermal shutdown */
+    BQ2429x_CHRG_FAULT_CHARGE_TIMER_EXPIRATION, /**< Charge timer expiration */
+} bq2429x_chrg_fault_t;
+ * @brief   Device faults
+ */
+typedef struct {
+    /**
+     * @brief   Watchdog fault.
+     * @details false = Normal.
+     *          true  = Watchdog timer expiration.

Yes (just not exposed right now), the watchdog is for the I2C interface, by default has a 40s timeout. The watchdog timer starts when an I2C command is written, it will keep running until the timeout is reached and the device will transition from "controlled by host" mode to "default mode" again. When the timeout is reached that field is set.

Changing the watchdog timer timeout is only useful if constantly sending I2C commands to the device that will take more than the current timeout.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210118/8c99f0f2/attachment.htm>

More information about the notifications mailing list