Driver for the AKM AK9752 IR sensor device.

Dependents:   AKDP-RevD7_014

Library for the AK9752 Ultra-Small IR Sensor with I2C Interface. Includes integrated temperature sensor (0 - 50C) and 16-bit ADC.

Revision:
11:e4a64ed3ed58
Parent:
7:fb2afd6d095c
Child:
14:c7692d514168
--- a/AK9752.h	Mon Nov 14 19:11:45 2016 +0000
+++ b/AK9752.h	Fri Mar 17 23:29:48 2017 +0000
@@ -40,6 +40,8 @@
         ERROR_I2C_WRITE,         /**< I2C write error */
         ERROR_I2C_READ,          /**< I2C read error */
         ERROR_ARG_OUT_OF_BOUNDS, /**< An argument is out of bounds */
+        DATA_READY,            /**< Data ready */
+        NOT_DATA_READY,        /**< Data ready is not asserted. */
     } Status;
     
     /**
@@ -209,6 +211,13 @@
     Status getSensorData(SensorData *data);
     
     /**
+     * Check if data is ready, i.e. measurement is finished.
+     *
+     * @return Returns DATA_READY if data is ready or NOT_DATA_READY if data is not ready. If error happens, returns another code.
+     */
+    Status isDataReady();
+
+    /**
      * Reads indicated AK9752 register(s).
      *
      * @param registerAddress Register address to be read.