[riot-notifications] [RIOT-OS/RIOT] drivers/lm75: driver for the lm75 sensor and derivatives (#16678)

benpicco notifications at github.com
Tue Jul 27 12:34:39 CEST 2021


@benpicco commented on this pull request.



> +    LM75_SUCCESS = 0,
+    LM75_ERROR_I2C,
+    LM75_ERROR
+};
+
+/**
+ * @brief temperature resolution structs of the LM75 sensors
+ */
+typedef struct {
+    uint16_t    os_res;     /**< resolution of the OS and HYST registers */
+    uint16_t    os_mult;    /**< multiplier required for getting the OS and HYST into ºC */
+    uint16_t    temp_res;   /**< resolution of the temperature register */
+    uint16_t    temp_mult;  /**< multiplier required for getting the temperature into ºC */
+    uint8_t     os_shift;   /**< how many bits need to be shifted (2 bytes - any unused bits) */
+    uint8_t     temp_shift;  /**< how many bits need to be shifted (2 bytes - any unused bits) */
+} lm75_temp_resolutions;

```suggestion
} lm75_temp_resolution_t;
```

-- 
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/16678#pullrequestreview-715752491
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210727/869fd14e/attachment.htm>


More information about the notifications mailing list