[riot-notifications] [RIOT-OS/RIOT] drivers/ph_oem: support for Atlas Scientific pH OEM sensor (#10983)

Leandro Lanzieri notifications at github.com
Tue Feb 26 18:55:20 CET 2019


leandrolanzieri commented on this pull request.



> + *
+ *          The pin will not auto reset on option @ref PH_OEM_IRQ_RISING
+ *          and @ref PH_OEM_IRQ_FALLING after interrupt fires,
+ *          so call this function again to reset the pin state, providing the
+ *          same option (@ref PH_OEM_IRQ_RISING or @ref PH_OEM_IRQ_FALLING).
+ *
+ *          Settings are not retained if the power is cut, so you have to call
+ *          this function again after powering on the device.
+ *
+ * @param[in] dev    device descriptor
+ * @param[in] option @ref ph_oem_irq_option_t
+ *
+ * @return @ref PH_OEM_OK on success
+ * @return @ref PH_OEM_WRITE_ERR if writing to the device failed
+ */
+int ph_oem_set_interrupt_pin(const ph_oem_t *dev, ph_oem_irq_option_t option);

>Removed the irq option `PH_OEM_IRQ_DISABLED `because I dont think its really needed. If the interrupt pin is defined, this option has no real use. What do you think?

Yes, I believe there is no use for the disable

-- 
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/10983#discussion_r260411263
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190226/d6f800c3/attachment.html>


More information about the notifications mailing list