[riot-notifications] [RIOT-OS/RIOT] Driver for Honeywell HSC series pressure and temperature sensor (#15383)
Hopel.ess
notifications at github.com
Sat Nov 7 16:27:34 CET 2020
@quangphhr commented on this pull request.
> +
+ /* Read uncompensated temperature value */
+ _read_ut(dev, &ut);
+
+ /* Compute true temperature value following datasheet formulas */
+ return (int16_t)(ut * 200 / 2047 - 50);
+}
+
+int32_t hsc_read_pressure(const hsc_t *dev)
+{
+ int32_t up = 0;
+
+ /* Read uncompensated pressure value */
+ _read_up(dev, &up);
+
+ /* Compute true pressure value following datasheet formulas */
[Honeywell I2C communication ](https://sensing.honeywell.com/i2c-comms-digital-output-pressure-sensors-tn-008201-3-en-final-30may12.pdf)
--
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/15383#discussion_r519188383
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201107/cc529086/attachment.htm>
More information about the notifications
mailing list