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

Jean Pierre Dudey notifications at github.com
Wed Jan 20 18:48:36 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.

Made this a private static function, since it's only useful during device initialization, and `bq2429x_init` does it anyway.

8354f26baa23c2bf4e41be45fface1224b9d929b

-- 
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_r561157570
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210120/483b875b/attachment.htm>


More information about the notifications mailing list