Initial release.

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_53L1A1_mbed X_NUCLEO_53L1A1_mbed VL53L1X_Ranging_With_Standalone_Satellite_MbedOS X_NUCLEO_53L1A1

Files at this revision

API Documentation at this revision

Comitter:
mapellil
Date:
Mon Dec 18 08:27:21 2017 +0000
Parent:
3:e9269ff624ed
Child:
5:f16727052990
Commit message:
Added vl53l0x_get_device() API

Changed in this revision

VL53L0X.h Show annotated file Show diff for this revision Revisions of this file
--- a/VL53L0X.h	Fri Oct 13 22:03:48 2017 +0000
+++ b/VL53L0X.h	Mon Dec 18 08:27:21 2017 +0000
@@ -610,6 +610,30 @@
 
     /**
      *
+     * @brief Get the 53L0 device
+     *
+     * To be called to retrive the internal device descriptor to allow usage of 
+     * low level API having device as parameter. To be called  after set_device_address()
+     * (if any).
+     *
+     * @par Function Description
+     * To be called if low level API usage is needed as those functions requires
+     * device as a parameter.TICINIT.
+     *
+     * @note This function return a pointer to an object internal structure
+     *
+     * @param   dev                   ptr to ptr to Device Handle
+     * @return  VL53L0X_ERROR_NONE     Success
+     * @return  "Other error code"    See ::VL53L0X_Error
+     */
+    VL53L0X_Error vl53l0x_get_device(VL53L0X_DEV *dev)
+{
+   *dev = _device;
+   return VL53L0X_ERROR_NONE;
+}             
+
+    /**
+     *
      * @brief One time device initialization
      *
      * To be called once and only once after device is brought out of reset