Functions used for Calibration. More...
Functions | |
VL53L1_Error | VL53L1_GetCalibrationData (VL53L1_DEV Dev, VL53L1_CalibrationData_t *pCalibrationData) |
Gets the Calibration Data. More... | |
VL53L1_Error | VL53L1_GetOpticalCenter (VL53L1_DEV Dev, FixPoint1616_t *pOpticalCenterX, FixPoint1616_t *pOpticalCenterY) |
Gets the optical center. More... | |
VL53L1_Error | VL53L1_GetTuningParameter (VL53L1_DEV Dev, uint16_t TuningParameterId, int32_t *pTuningParameterValue) |
Get Tuning Parameter value for a given parameter ID. More... | |
VL53L1_Error | VL53L1_GetXTalkCompensationEnable (VL53L1_DEV Dev, uint8_t *pXTalkCompensationEnable) |
Get Cross talk compensation rate enable. More... | |
VL53L1_Error | VL53L1_PerformOffsetCalibration (VL53L1_DEV Dev, int32_t CalDistanceMilliMeter) |
Perform Offset Calibration. More... | |
VL53L1_Error | VL53L1_PerformOffsetSimpleCalibration (VL53L1_DEV Dev, int32_t CalDistanceMilliMeter) |
Perform Offset simple Calibration. More... | |
VL53L1_Error | VL53L1_PerformRefSpadManagement (VL53L1_DEV Dev) |
Performs Reference Spad Management. More... | |
VL53L1_Error | VL53L1_PerformSingleTargetXTalkCalibration (VL53L1_DEV Dev, int32_t CalDistanceMilliMeter) |
Perform XTalk Calibration. More... | |
VL53L1_Error | VL53L1_SetCalibrationData (VL53L1_DEV Dev, VL53L1_CalibrationData_t *pCalibrationData) |
Sets the Calibration Data. More... | |
VL53L1_Error | VL53L1_SetOffsetCalibrationMode (VL53L1_DEV Dev, VL53L1_OffsetCalibrationModes OffsetCalibrationMode) |
Define the mode to be used for the offset calibration. More... | |
VL53L1_Error | VL53L1_SetTuningParameter (VL53L1_DEV Dev, uint16_t TuningParameterId, int32_t TuningParameterValue) |
Set Tuning Parameter value for a given parameter ID. More... | |
VL53L1_Error | VL53L1_SetXTalkCompensationEnable (VL53L1_DEV Dev, uint8_t XTalkCompensationEnable) |
Enable/Disable Cross talk compensation feature. More... | |
Functions used for Calibration.
VL53L1_Error VL53L1_GetCalibrationData | ( | VL53L1_DEV | Dev, |
VL53L1_CalibrationData_t * | pCalibrationData | ||
) |
Gets the Calibration Data.
Dev | Device Handle |
*pCalibrationData | pointer where to store Calibration data. |
Definition at line 2635 of file vl53l1_api.c.
VL53L1_Error VL53L1_GetOpticalCenter | ( | VL53L1_DEV | Dev, |
FixPoint1616_t * | pOpticalCenterX, | ||
FixPoint1616_t * | pOpticalCenterY | ||
) |
Gets the optical center.
Dev | Device Handle |
*pOpticalCentreX | pointer to the X position of center in 16.16 fix point |
*pOpticalCentreY | pointer to the Y position of center in 16.16 fix point |
Definition at line 2719 of file vl53l1_api.c.
VL53L1_Error VL53L1_GetTuningParameter | ( | VL53L1_DEV | Dev, |
uint16_t | TuningParameterId, | ||
int32_t * | pTuningParameterValue | ||
) |
Get Tuning Parameter value for a given parameter ID.
Dev | Device Handle |
TuningParameterId | Tuning Parameter ID |
pTuningParameterValue | Pointer to Tuning Parameter Value for a given TuningParameterId. |
Definition at line 2226 of file vl53l1_api.c.
VL53L1_Error VL53L1_GetXTalkCompensationEnable | ( | VL53L1_DEV | Dev, |
uint8_t * | pXTalkCompensationEnable | ||
) |
Get Cross talk compensation rate enable.
Get if the Cross Talk is Enabled or Disabled.
Dev | Device Handle |
pXTalkCompensationEnable | Pointer to the Cross talk compensation state 0=disabled or 1 = enabled |
Definition at line 2349 of file vl53l1_api.c.
VL53L1_Error VL53L1_PerformOffsetCalibration | ( | VL53L1_DEV | Dev, |
int32_t | CalDistanceMilliMeter | ||
) |
Perform Offset Calibration.
Perform a Offset calibration of the Device. This function will launch a ranging measurement, if interrupts are enabled interrupts will be done. This function will program a new value for the Offset calibration value
Dev | Device Handle |
CalDistanceMilliMeter | Calibration distance value used for the offset compensation. |
Definition at line 2411 of file vl53l1_api.c.
VL53L1_Error VL53L1_PerformOffsetSimpleCalibration | ( | VL53L1_DEV | Dev, |
int32_t | CalDistanceMilliMeter | ||
) |
Perform Offset simple Calibration.
Perform a very simple offset calibration of the Device. This function will launch few ranging measurements and computes offset calibration. The preset mode and the distance mode MUST be set by the application before to call this function.
Dev | Device Handle |
CalDistanceMilliMeter | Calibration distance value used for the offset compensation. |
Definition at line 2457 of file vl53l1_api.c.
VL53L1_Error VL53L1_PerformRefSpadManagement | ( | VL53L1_DEV | Dev | ) |
Performs Reference Spad Management.
Dev | Device Handle |
Definition at line 2249 of file vl53l1_api.c.
VL53L1_Error VL53L1_PerformSingleTargetXTalkCalibration | ( | VL53L1_DEV | Dev, |
int32_t | CalDistanceMilliMeter | ||
) |
Perform XTalk Calibration.
Perform a XTalk calibration of the Device. This function will launch a ranging measurement, if interrupts are enabled an interrupt will be done. This function will clear the interrupt generated automatically. This function will program a new value for the XTalk compensation and it will enable the cross talk before exit.
Dev | Device Handle |
CalDistanceMilliMeter | Target distance in mm The calibration uses current preset and distance mode without altering them. User must call VL53L1_SetPresetMode() with VL53L1_PRESETMODE_AUTONOMOUS, VL53L1_PRESETMODE_LITE_RANGING or VL53L1_PRESETMODE_LOWPOWER_AUTONOMOUS parameter prior to launch calibration |
Definition at line 2364 of file vl53l1_api.c.
VL53L1_Error VL53L1_SetCalibrationData | ( | VL53L1_DEV | Dev, |
VL53L1_CalibrationData_t * | pCalibrationData | ||
) |
Sets the Calibration Data.
Dev | Device Handle |
*pCalibrationData | Pointer to Calibration data to be set. |
Definition at line 2554 of file vl53l1_api.c.
VL53L1_Error VL53L1_SetOffsetCalibrationMode | ( | VL53L1_DEV | Dev, |
VL53L1_OffsetCalibrationModes | OffsetCalibrationMode | ||
) |
Define the mode to be used for the offset calibration.
Define the mode to be used for the offset calibration. This function should be called before run the VL53L1_PerformOffsetCalibration()
Dev | Device Handle |
OffsetCalibrationMode | Offset Calibration Mode valid values are:
|
Definition at line 2383 of file vl53l1_api.c.
VL53L1_Error VL53L1_SetTuningParameter | ( | VL53L1_DEV | Dev, |
uint16_t | TuningParameterId, | ||
int32_t | TuningParameterValue | ||
) |
Set Tuning Parameter value for a given parameter ID.
Dev | Device Handle |
TuningParameterId | Tuning Parameter ID |
TuningParameterValue | Tuning Parameter Value |
Definition at line 2205 of file vl53l1_api.c.
VL53L1_Error VL53L1_SetXTalkCompensationEnable | ( | VL53L1_DEV | Dev, |
uint8_t | XTalkCompensationEnable | ||
) |
Enable/Disable Cross talk compensation feature.
Enable/Disable Cross Talk correction.
Dev | Device Handle |
XTalkCompensationEnable | Cross talk compensation to be set 0 = disabled or 1 = enabled. |
Definition at line 2332 of file vl53l1_api.c.