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

viktorbatista notifications at github.com
Thu Aug 19 09:55:08 CEST 2021


@viktorbatista commented on this pull request.



> + *
+ * @return LM75_SUCCESS, on success
+ * @return LM75_ERROR_I2C, on I2C related error
+ */
+int lm75_get_hyst_temp(lm75_t *dev, int *temperature);
+
+/**
+ * @brief Read the current state of the OS pin to see if it's active.
+ *
+ * Read the configuration register to see the OS pin's polarity and
+ * then reads its state. Then outputs if the pin is active and whether
+ * it's in the low and active or high and active.
+ *
+ * @param[in] dev      device structure
+ *
+ * @return LM75_SUCCESS, on success

Success means the OS pin's output was successfully read i.e. there were no errors. This function first reads what the PIN's polarity should be in the device's config registers and then reads its output to determine whether the PIN is active or not. 

-- 
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#discussion_r691874393
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210819/94cb26db/attachment.htm>


More information about the notifications mailing list