Library for use with VL53L1X, intended to represent the Proximity sensor expansion board with the same name.
Dependencies: VL53L1X_mbed
Dependents: HelloWorld_53L1A1 VL53L1A1_Simple_Ranging_With_One_Device VL53L1A1_Simple_Ranging_With_All_Devices VL53L1X_Ranging_With_Multiple_Devices_MbedOS ... more
Diff: Components/VL53L0X/vl53l0x_class.h
- Revision:
- 20:cb95ef8a3508
- Parent:
- 15:44e6c9013bff
diff -r 44e6c9013bff -r cb95ef8a3508 Components/VL53L0X/vl53l0x_class.h
--- a/Components/VL53L0X/vl53l0x_class.h Tue Aug 08 14:41:03 2017 +0000
+++ b/Components/VL53L0X/vl53l0x_class.h Fri Dec 15 14:13:04 2017 +0000
@@ -452,6 +452,26 @@
/**
*
+ * @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);
+
+ /**
+ *
* @brief One time device initialization
*
* To be called once and only once after device is brought out of reset (Chip enable) and booted.
@@ -625,7 +645,7 @@
* @return "Other error code" See ::VL53L0X_Error
*/
VL53L0X_Error vl53l0x_data_init(VL53L0X_DEV dev);
-
+
/**
* @brief Do basic device init (and eventually patch loading)
* This function will change the VL53L0X_State from
X-NUCLEO-53L1A1 Ranging Sensor Expansion Board