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

Leandro Lanzieri notifications at github.com
Wed Feb 6 15:14:03 CET 2019


leandrolanzieri commented on this pull request.



> + * @brief Excitation signal outpus configuration
+ */
+typedef enum {
+    AD7746_EXC_A = 0x06,   /**< enable only exc A output */
+    AD7746_EXC_B = 0x09,   /**< enable only exc B output */
+    AD7746_EXC_AB = 0x0A   /**< enable exc A and B outputs */
+} ad7746_exc_config_t;
+
+/**
+ * @brief   AD7746 params
+ */
+typedef struct ad7746_params {
+    i2c_t i2c;                                /**< i2c device */
+    uint8_t addr;                             /**< i2c address */
+    uint8_t dac_a_cap;                        /**< DAC A capacitance */
+    uint8_t dac_b_cap;                        /**< DAC B capacitance */

This is used to introduce an offset in the negative and positive inputs by using a DAC. It is a configuration of the capacitance channel.

-- 
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_r254285565
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190206/67bb7621/attachment-0001.html>


More information about the notifications mailing list