Greatly simplified Architecture, Identical Functions Removed: Platform Interfaces, STP6001 interface
Diff: VL53L0X.h
- Revision:
- 13:253cb4ea3fcc
- Parent:
- 12:81f37e50f8f8
--- a/VL53L0X.h Mon Jul 08 14:07:22 2019 +0000
+++ b/VL53L0X.h Sat Jul 20 08:48:49 2019 +0000
@@ -96,7 +96,7 @@
* @return "0" on success
*/
int start_measurement(OperatingMode operating_mode, void (*fptr)(void),
- VL53L0X_RangingConfig rangingConfig = Range_Config_DEFAULT);
+ VL53L0X_RangingConfig rangingConfig );
/**
* @brief Get results for the measure indicated by operating mode
@@ -474,26 +474,6 @@
*/
VL53L0X_Error VL53L0X_set_device_mode( VL53L0X_DeviceModes device_mode);
- /**
- * @brief Get current new device mode
- * @par Function Description
- * Get actual mode of the device(ranging, histogram ...)
- *
- * @note This function doesn't Access to the device
- *
- * @param p_device_mode Pointer to current apply mode value
- * Valid values are:
- * VL53L0X_DEVICEMODE_SINGLE_RANGING
- * VL53L0X_DEVICEMODE_CONTINUOUS_RANGING
- * VL53L0X_DEVICEMODE_CONTINUOUS_TIMED_RANGING
- * VL53L0X_DEVICEMODE_SINGLE_HISTOGRAM
- *
- * @return VL53L0X_ERROR_NONE Success
- * @return VL53L0X_ERROR_MODE_NOT_SUPPORTED This error occurs when
- * DeviceMode is not in the
- * supported list
- */
- VL53L0X_Error VL53L0X_get_device_mode(VL53L0X_DeviceModes *p_device_mode);
/**
* @brief Get current configuration for GPIO pin for a given device
@@ -1218,12 +1198,6 @@
VL53L0X_Error VL53L0X_device_read_strobe(void);
- VL53L0X_Error wrapped_VL53L0X_get_measurement_timing_budget_us(
- uint32_t *p_measurement_timing_budget_us);
-
- VL53L0X_Error wrapped_VL53L0X_get_vcsel_pulse_period(
- VL53L0X_VcselPeriod vcsel_period_type, uint8_t *p_vcsel_pulse_period_pclk);
-
uint8_t VL53L0X_decode_vcsel_period(uint8_t vcsel_period_reg);
uint32_t VL53L0X_decode_timeout(uint16_t encoded_timeout);
@@ -1274,10 +1248,6 @@
/* api_calibration.h functions */
VL53L0X_Error VL53L0X_apply_offset_adjustment(void);
- VL53L0X_Error wrapped_VL53L0X_get_offset_calibration_data_micro_meter(
- int32_t *p_offset_calibration_data_micro_meter);
- VL53L0X_Error wrapped_VL53L0X_set_offset_calibration_data_micro_meter(
- int32_t offset_calibration_data_micro_meter);
VL53L0X_Error wrapped_VL53L0X_perform_ref_spad_management(
uint32_t *ref_spad_count,
uint8_t *is_aperture_spads);
@@ -1848,7 +1818,7 @@
VL53L0X_Error VL53L0X_i2c_read(uint8_t index, uint8_t *p_data, uint16_t number_of_bytes);
};
-void Report_Deep_Infos (VL53L0X TOF1);
-void Report_Range_Infos(VL53L0X_RangingMeasurementData_t RangeResults);
+void Report_Deep_Infos (VL53L0X TOF1, Serial *aSerial);
+void Report_Range_Infos(VL53L0X_RangingMeasurementData_t RangeResults, Serial *aSerial);
#endif /* _VL53L0X_CLASS_H_ */