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

Jean Pierre Dudey notifications at github.com
Mon Jan 18 09:54:13 CET 2021


@jeandudey commented on this pull request.



> +/**
+ * @brief   Get Charge Voltage Limit.
+ *
+ * @pre @p dev != NULL && @p vreg != NULL
+ *
+ * @param[in]   dev     Device descriptor.
+ * @param[out]  vreg    Voltage limit.
+ *
+ * @return BQ2429X_OK on success.
+ * @return BQ2429X_ERR_I2C on I2C failure.
+ */
+int bq2429x_get_vreg(const bq2429x_t *dev,
+                     bq2429x_charge_voltage_limit_t *vreg);
+
+/**
+ * @brief   Update charge parameters on the device.

Useful only to refresh the parameters on the device if a fault occurs and the information gets lost. So, usually the process is:

1. Fault occurs and is reported through the interrupt.
2. Refresh the parameters on the device.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15523#discussion_r559402694
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210118/b3b2401e/attachment.htm>


More information about the notifications mailing list