EasyManuals Logo
Home>ST>Control Unit>VL53L1X API

ST VL53L1X API User Manual

ST VL53L1X API
26 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #15 background imageLoading...
Page #15 background image
7 Function descriptions
In the descriptions below, most functions return an error status. 0 is successful. Most values are unsigned 16-bit
integers except where noted. Most ‘Set’ functions are paired with a corresponding ‘Get’ function.
7.1 GetSWVersion
VL53L1X_ERROR VL53L1X_GetSWVersion(VL53L1X_Version_t *pVersion);
This function returns the SW driver version.
7.2
SetI2CAddress
VL53L1X_ERROR VL53L1X_SetI2CAddress(VL53L1_Dev_t, dev,
uint8_t new_address);
This function sets the sensor I2C address used for a multiple device application. The default address for the
sensor at boot up is 0x52.
7.3 SensorInit
VL53L1X_ERROR VL53L1X_SensorInit(VL53L1_Dev_t dev);
This function loads the 45 bytes of configuration values which initialize the sensor.
7.4 VL53L1X ClearInterrupt
VL53L1X_ERROR VL53L1X_ClearInterrupt(VL53L1_Dev_t dev);
This function clears the interrupt to be called after a ranging data reading, to arm the interrupt for the next data
ready event.
7.5 SetInterruptPolarity
VL53L1X_ERROR VL53L1X_SetInterruptPolarity(VL53L1_Dev_t dev,
uint8_t IntPol);
This function programs the interrupt polarity, 1 = active high (default), 0 = active low.
7.6 GetInterruptPolarity
VL53L1X_ERROR VL53L1X_GetInterruptPolarity(VL53L1_Dev_t dev,
uint8_t *pIntPol);
This function returns the current interrupt polarity, 1 = active high (default), 0 = active low.
7.7 StartRanging
VL53L1X_ERROR VL53L1X_StartRanging(VL53L1_Dev_t dev);
This function starts the ranging distance operation which is continuous. The clear interrupt has to be done after
each "get data" to allow the interrupt to be raised when the next data are ready. 1 = active high (default), 0 =
active low. If required, use SetInterruptPolarity() to change the interrupt polarity.
UM2510
Function descriptions
UM2510 - Rev 1
page 15/26

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST VL53L1X API and is the answer not in the manual?

ST VL53L1X API Specifications

General IconGeneral
BrandST
ModelVL53L1X API
CategoryControl Unit
LanguageEnglish

Related product manuals