[riot-notifications] [RIOT-OS/RIOT] drivers: Add AD7746 capacitance sensor driver (#10919)

Leandro Lanzieri notifications at github.com
Wed Feb 6 15:05:50 CET 2019


leandrolanzieri commented on this pull request.



> + *
+ * @return AD7746_OK on success
+ * @return AD7746_NOI2C on error
+ */
+int ad7746_set_cap_ch_input(const ad7746_t *dev, uint8_t input);
+
+/**
+ * @brief   Sets the mode for the voltage / temperature channel
+ *
+ * @param[in] dev   device descriptor
+ * @param[in] mode  mode to which the channel has to be set
+ *
+ * @return AD7746_OK on success
+ * @return AD7746_NOI2C on error
+ */
+int ad7746_set_vt_channel_mode(const ad7746_t *dev, ad7746_vt_mode_t mode);

As the test application shows, this can be changed in runtime, so temperature or different sources of voltage can be measured. 

-- 
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/10919#discussion_r254282454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190206/5000c451/attachment.html>


More information about the notifications mailing list