VL53L0X World smallest Time-of-Flight (ToF) ranging sensor
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: HelloWorld_ST_Sensors mbed-os-mqtt-client Multi_VL53L0X DISCO-IOT01_HomeEnv ... more
Fork of VL53L0X by
Diff: VL53L0X.h
- Revision:
- 4:d25c4fa216af
- Parent:
- 2:d07edeaff6f1
--- 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