Require clarity regarding wording in "VL53L0X API Specification" documentation
Hello,
I am using the VL53L0x Library with a 53L0A1 sensor and am trying to understand the difference between what the API refers to as "State" and "Mode"
In the doc on page 16:
VL53L0X_API VL53L0X_Error VL53L0X_SetPowerMode (VL53L0X_DEV Dev, VL53L0X_PowerModes PowerMode)
Set the power mode for a given Device The power mode can be Standby or Idle.
Different level of both Standby and Idle can exists. This function should not be used when device is in Ranging state."This function should not be used when device is in Ranging state." I would think would refer to:
VL53L0X_API VL53L0X_Error VL53L0X_SetDeviceMode (VL53L0X_DEV Dev, VL53L0X_DeviceModes DeviceMode)
Set a new device mode.
Function Description
Set device to a new mode (ranging, histogram ...)But this provides the following options:
New device mode to apply Valid values are: VL53L0X_DEVICEMODE_SINGLE_RANGING VL53L0X_DEVICEMODE_CONTINUOUS_RANGING VL53L0X_DEVICEMODE_CONTINUOUS_TIMED_RANGING VL53L0X_DEVICEMODE_SINGLE_HISTOGRAM VL53L0X_HISTOGRAMMODE_REFERENCE_ONLY VL53L0X_HISTOGRAMMODE_RETURN_ONLY VL53L0X_HISTOGRAMMODE_BOTHSo my question is:
"What is VL53L0X_SetPowerMode referring it when it specifies "Ranging state" and is this different to the "_DEVICEMODE_" set by VL53L0X_SetDeviceMode"
