Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: VL53L3CX_NoShield_1Sensor_poll_Mb06x VL53L3_NoShield_1Sensor_polling_Mb63 X_NUCLEO_53L3A2 53L3A2_Ranging
VL53LX Init Functions
[VL53LX Function Definition]
VL53LX Init Functions. More...
Functions | |
| VL53LX_Error | VL53LX_SetDeviceAddress (VL53LX_DEV Dev, uint8_t DeviceAddress) |
| Set new device address. | |
| VL53LX_Error | VL53LX_DataInit (VL53LX_DEV Dev) |
| One time device initialization. | |
| VL53LX_Error | VL53LX_WaitDeviceBooted (VL53LX_DEV Dev) |
| Wait for device booted after chip enable (hardware standby) | |
Detailed Description
VL53LX Init Functions.
Function Documentation
| VL53LX_Error VL53LX_DataInit | ( | VL53LX_DEV | Dev ) |
One time device initialization.
To be called after device has been powered on and booted see VL53LX_WaitDeviceBooted()
- Function Description
- When not used after a fresh device "power up", it may return VL53LX_ERROR_CALIBRATION_WARNING meaning wrong calibration data may have been fetched from device that can result in ranging offset error
If VL53LX_DataInit is called several times then the application must restore calibration calling VL53LX_SetOffsetCalibrationData() It implies application has gathered calibration data thanks to VL53LX_GetOffsetCalibrationData() after an initial calibration stage.
- Note:
- This function Access to the device
- Parameters:
-
Dev Device Handle
- Returns:
- VL53LX_ERROR_NONE Success
- "Other error code" See VL53LX_Error
Definition at line 199 of file vl53lx_api.c.
| VL53LX_Error VL53LX_SetDeviceAddress | ( | VL53LX_DEV | Dev, |
| uint8_t | DeviceAddress | ||
| ) |
Set new device address.
After completion the device will answer to the new address programmed. This function should be called when several devices are used in parallel before start programming the sensor. When a single device us used, there is no need to call this function.
When it is requested for multi devices system this function MUST be called prior to VL53LX_DataInit()
- Note:
- This function Access to the device
- Parameters:
-
Dev Device Handle DeviceAddress The new Device address
- Returns:
- VL53LX_ERROR_NONE Success
- "Other error code" See VL53LX_Error
Definition at line 177 of file vl53lx_api.c.
| VL53LX_Error VL53LX_WaitDeviceBooted | ( | VL53LX_DEV | Dev ) |
Wait for device booted after chip enable (hardware standby)
- Parameters:
-
Dev Device Handle
- Returns:
- VL53LX_ERROR_NONE Success
- "Other error code" See VL53LX_Error
Definition at line 259 of file vl53lx_api.c.
Generated on Mon Jul 18 2022 15:35:58 by
1.7.2