Makes the VL53L0X library compatible with MAX32630FTHR definitions. Adjusts default sensor settings to fastest reading (20ms) vs. default (30ms).
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of VL53L0X by
Revision 4:d25c4fa216af, committed 2017-12-18
- Comitter:
- mapellil
- Date:
- Mon Dec 18 08:27:21 2017 +0000
- Parent:
- 3:e9269ff624ed
- Child:
- 5:d25feb417ac1
- 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
