MRMS
|
Functions used for the measurements. More...
Functions | |
VL53L0X_API VL53L0X_Error | VL53L0X_PerformSingleMeasurement (VL53L0X_DEV Dev) |
Single shot measurement. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_PerformRefCalibration (VL53L0X_DEV Dev, uint8_t *pVhvSettings, uint8_t *pPhaseCal) |
Perform Reference Calibration. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_PerformXTalkMeasurement (VL53L0X_DEV Dev, uint32_t TimeoutMs, FixPoint1616_t *pXtalkPerSpad, uint8_t *pAmbientTooHigh) |
Perform XTalk Measurement. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_PerformXTalkCalibration (VL53L0X_DEV Dev, FixPoint1616_t XTalkCalDistance, FixPoint1616_t *pXTalkCompensationRateMegaCps) |
Perform XTalk Calibration. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_PerformOffsetCalibration (VL53L0X_DEV Dev, FixPoint1616_t CalDistanceMilliMeter, int32_t *pOffsetMicroMeter) |
Perform Offset Calibration. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_StartMeasurement (VL53L0X_DEV Dev) |
Start device measurement. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_StopMeasurement (VL53L0X_DEV Dev) |
Stop device measurement. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_GetMeasurementDataReady (VL53L0X_DEV Dev, uint8_t *pMeasurementDataReady) |
Return Measurement Data Ready. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_WaitDeviceReadyForNewMeasurement (VL53L0X_DEV Dev, uint32_t MaxLoop) |
Wait for device ready for a new measurement command. Blocking function. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_GetMeasurementRefSignal (VL53L0X_DEV Dev, FixPoint1616_t *pMeasurementRefSignal) |
Retrieve the Reference Signal after a measurements. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_GetRangingMeasurementData (VL53L0X_DEV Dev, VL53L0X_RangingMeasurementData_t *pRangingMeasurementData) |
Retrieve the measurements from device for a given setup. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_GetHistogramMeasurementData (VL53L0X_DEV Dev, VL53L0X_HistogramMeasurementData_t *pHistogramMeasurementData) |
Retrieve the measurements from device for a given setup. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_PerformSingleRangingMeasurement (VL53L0X_DEV Dev, VL53L0X_RangingMeasurementData_t *pRangingMeasurementData) |
Performs a single ranging measurement and retrieve the ranging measurement data. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_PerformSingleHistogramMeasurement (VL53L0X_DEV Dev, VL53L0X_HistogramMeasurementData_t *pHistogramMeasurementData) |
Performs a single histogram measurement and retrieve the histogram measurement data Is equivalent to VL53L0X_PerformSingleMeasurement + VL53L0X_GetHistogramMeasurementData. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_SetNumberOfROIZones (VL53L0X_DEV Dev, uint8_t NumberOfROIZones) |
Set the number of ROI Zones to be used for a specific Device. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_GetNumberOfROIZones (VL53L0X_DEV Dev, uint8_t *pNumberOfROIZones) |
Get the number of ROI Zones managed by the Device. More... | |
VL53L0X_API VL53L0X_Error | VL53L0X_GetMaxNumberOfROIZones (VL53L0X_DEV Dev, uint8_t *pMaxNumberOfROIZones) |
Get the Maximum number of ROI Zones managed by the Device. More... | |
Functions used for the measurements.
VL53L0X_API VL53L0X_Error VL53L0X_GetHistogramMeasurementData | ( | VL53L0X_DEV | Dev, |
VL53L0X_HistogramMeasurementData_t * | pHistogramMeasurementData | ||
) |
Retrieve the measurements from device for a given setup.
Dev | Device Handle |
pHistogramMeasurementData | Pointer to the histogram data structure. |
VL53L0X_API VL53L0X_Error VL53L0X_GetMaxNumberOfROIZones | ( | VL53L0X_DEV | Dev, |
uint8_t * | pMaxNumberOfROIZones | ||
) |
Get the Maximum number of ROI Zones managed by the Device.
Dev | Device Handle |
pMaxNumberOfROIZones | Pointer to the Maximum Number of ROI Zones value. |
VL53L0X_API VL53L0X_Error VL53L0X_GetMeasurementDataReady | ( | VL53L0X_DEV | Dev, |
uint8_t * | pMeasurementDataReady | ||
) |
Return Measurement Data Ready.
Dev | Device Handle |
pMeasurementDataReady | Pointer to Measurement Data Ready. 0=data not ready, 1 = data ready |
VL53L0X_API VL53L0X_Error VL53L0X_GetMeasurementRefSignal | ( | VL53L0X_DEV | Dev, |
FixPoint1616_t * | pMeasurementRefSignal | ||
) |
Retrieve the Reference Signal after a measurements.
Dev | Device Handle |
pMeasurementRefSignal | Pointer to the Ref Signal to fill up. |
VL53L0X_API VL53L0X_Error VL53L0X_GetNumberOfROIZones | ( | VL53L0X_DEV | Dev, |
uint8_t * | pNumberOfROIZones | ||
) |
Get the number of ROI Zones managed by the Device.
Dev | Device Handle |
pNumberOfROIZones | Pointer to the Number of ROI Zones value. |
VL53L0X_API VL53L0X_Error VL53L0X_GetRangingMeasurementData | ( | VL53L0X_DEV | Dev, |
VL53L0X_RangingMeasurementData_t * | pRangingMeasurementData | ||
) |
Retrieve the measurements from device for a given setup.
Dev | Device Handle |
pRangingMeasurementData | Pointer to the data structure to fill up. |
VL53L0X_API VL53L0X_Error VL53L0X_PerformOffsetCalibration | ( | VL53L0X_DEV | Dev, |
FixPoint1616_t | CalDistanceMilliMeter, | ||
int32_t * | pOffsetMicroMeter | ||
) |
Perform Offset Calibration.
Perform a Offset 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 Offset calibration value This function will disable the VL53L0X_CHECKENABLE_RANGE_IGNORE_THRESHOLD.
Dev | Device Handle |
CalDistanceMilliMeter | Calibration distance value used for the offset compensation. |
pOffsetMicroMeter | Pointer to new Offset value computed by the function. |
VL53L0X_API VL53L0X_Error VL53L0X_PerformRefCalibration | ( | VL53L0X_DEV | Dev, |
uint8_t * | pVhvSettings, | ||
uint8_t * | pPhaseCal | ||
) |
Perform Reference Calibration.
Perform a reference calibration of the Device. This function should be run from time to time before doing a ranging measurement. This function will launch a special ranging measurement, so if interrupt are enable an interrupt will be done. This function will clear the interrupt generated automatically.
Dev | Device Handle |
pVhvSettings | Pointer to vhv settings parameter. |
pPhaseCal | Pointer to PhaseCal parameter. |
VL53L0X_API VL53L0X_Error VL53L0X_PerformSingleHistogramMeasurement | ( | VL53L0X_DEV | Dev, |
VL53L0X_HistogramMeasurementData_t * | pHistogramMeasurementData | ||
) |
Performs a single histogram measurement and retrieve the histogram measurement data Is equivalent to VL53L0X_PerformSingleMeasurement + VL53L0X_GetHistogramMeasurementData.
Dev | Device Handle |
pHistogramMeasurementData | Pointer to the data structure to fill up. |
VL53L0X_API VL53L0X_Error VL53L0X_PerformSingleMeasurement | ( | VL53L0X_DEV | Dev | ) |
Single shot measurement.
Dev | Device Handle |
VL53L0X_API VL53L0X_Error VL53L0X_PerformSingleRangingMeasurement | ( | VL53L0X_DEV | Dev, |
VL53L0X_RangingMeasurementData_t * | pRangingMeasurementData | ||
) |
Performs a single ranging measurement and retrieve the ranging measurement data.
Dev | Device Handle |
pRangingMeasurementData | Pointer to the data structure to fill up. |
VL53L0X_API VL53L0X_Error VL53L0X_PerformXTalkCalibration | ( | VL53L0X_DEV | Dev, |
FixPoint1616_t | XTalkCalDistance, | ||
FixPoint1616_t * | pXTalkCompensationRateMegaCps | ||
) |
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. This function will disable the VL53L0X_CHECKENABLE_RANGE_IGNORE_THRESHOLD.
Dev | Device Handle |
XTalkCalDistance | XTalkCalDistance value used for the XTalk computation. |
pXTalkCompensationRateMegaCps | Pointer to new XTalkCompensation value. |
VL53L0X_API VL53L0X_Error VL53L0X_PerformXTalkMeasurement | ( | VL53L0X_DEV | Dev, |
uint32_t | TimeoutMs, | ||
FixPoint1616_t * | pXtalkPerSpad, | ||
uint8_t * | pAmbientTooHigh | ||
) |
Perform XTalk Measurement.
Measures the current cross talk from glass in front of the sensor. This functions performs a histogram measurement and uses the results to measure the crosstalk. For the function to be successful, there must be no target in front of the sensor.
Dev | Device Handle |
TimeoutMs | Histogram measurement duration. |
pXtalkPerSpad | Output parameter containing the crosstalk measurement result, in MCPS/Spad. Format fixpoint 16:16. |
pAmbientTooHigh | Output parameter which indicate that pXtalkPerSpad is not good if the Ambient is too high. |
VL53L0X_API VL53L0X_Error VL53L0X_SetNumberOfROIZones | ( | VL53L0X_DEV | Dev, |
uint8_t | NumberOfROIZones | ||
) |
Set the number of ROI Zones to be used for a specific Device.
Dev | Device Handle |
NumberOfROIZones | Number of ROI Zones to be used for a specific Device. |
VL53L0X_API VL53L0X_Error VL53L0X_StartMeasurement | ( | VL53L0X_DEV | Dev | ) |
Start device measurement.
Started measurement will depend on device parameters set through VL53L0X_SetParameters() This is a non-blocking function. This function will change the VL53L0X_State from VL53L0X_STATE_IDLE to VL53L0X_STATE_RUNNING.
Dev | Device Handle |
VL53L0X_API VL53L0X_Error VL53L0X_StopMeasurement | ( | VL53L0X_DEV | Dev | ) |
Stop device measurement.
Will set the device in standby mode at end of current measurement
Not necessary in single mode as device shall return automatically in standby mode at end of measurement. This function will change the VL53L0X_State from VL53L0X_STATE_RUNNING to VL53L0X_STATE_IDLE.
Dev | Device Handle |
VL53L0X_API VL53L0X_Error VL53L0X_WaitDeviceReadyForNewMeasurement | ( | VL53L0X_DEV | Dev, |
uint32_t | MaxLoop | ||
) |
Wait for device ready for a new measurement command. Blocking function.
Dev | Device Handle |
MaxLoop | Max Number of polling loop (timeout). |