Rename library
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: VL53L3CX_NoShield_1Sensor_poll_Mb06x VL53L3_NoShield_1Sensor_polling_Mb63 X_NUCLEO_53L3A2 53L3A2_Ranging
porting/vl53lx_platform_ipp.c
- Committer:
- charlesmn
- Date:
- 2021-07-21
- Revision:
- 7:7f1bbf370283
- Parent:
- 5:89031b2f5316
File content as of revision 7:7f1bbf370283:
// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause /****************************************************************************** * Copyright (c) 2020, STMicroelectronics - All Rights Reserved This file is part of VL53LX and is dual licensed, either GPL-2.0+ or 'BSD 3-clause "New" or "Revised" License' , at your option. ****************************************************************************** */ #include "vl53lx_platform_ipp.h" #include "vl53lx_ll_def.h" #include "vl53lx_hist_structs.h" #include "vl53lx_hist_funcs.h" #include "vl53lx_xtalk.h" #define LOG_FUNCTION_START(fmt, ...) \ _LOG_FUNCTION_START(VL53LX_TRACE_MODULE_CORE, fmt, ##__VA_ARGS__) #define LOG_FUNCTION_END(status, ...) \ _LOG_FUNCTION_END(VL53LX_TRACE_MODULE_CORE, status, ##__VA_ARGS__) VL53LX_Error VL53LX_ipp_hist_process_data( VL53LX_DEV Dev, VL53LX_dmax_calibration_data_t *pdmax_cal, VL53LX_hist_gen3_dmax_config_t *pdmax_cfg, VL53LX_hist_post_process_config_t *ppost_cfg, VL53LX_histogram_bin_data_t *pbins, VL53LX_xtalk_histogram_data_t *pxtalk, uint8_t *pArea1, uint8_t *pArea2, uint8_t *phisto_merge_nb, VL53LX_range_results_t *presults) { VL53LX_Error status = VL53LX_ERROR_NONE; SUPPRESS_UNUSED_WARNING(Dev); status = VL53LX_hist_process_data( pdmax_cal, pdmax_cfg, ppost_cfg, pbins, pxtalk, pArea1, pArea2, presults, phisto_merge_nb); return status; } VL53LX_Error VL53LX_ipp_hist_ambient_dmax( VL53LX_DEV Dev, uint16_t target_reflectance, VL53LX_dmax_calibration_data_t *pdmax_cal, VL53LX_hist_gen3_dmax_config_t *pdmax_cfg, VL53LX_histogram_bin_data_t *pbins, int16_t *pambient_dmax_mm) { VL53LX_Error status = VL53LX_ERROR_NONE; SUPPRESS_UNUSED_WARNING(Dev); status = VL53LX_hist_ambient_dmax( target_reflectance, pdmax_cal, pdmax_cfg, pbins, pambient_dmax_mm); return status; } VL53LX_Error VL53LX_ipp_xtalk_calibration_process_data( VL53LX_DEV Dev, VL53LX_xtalk_range_results_t *pxtalk_ranges, VL53LX_xtalk_histogram_data_t *pxtalk_shape, VL53LX_xtalk_calibration_results_t *pxtalk_cal) { VL53LX_Error status = VL53LX_ERROR_NONE; SUPPRESS_UNUSED_WARNING(Dev); status = VL53LX_xtalk_calibration_process_data( pxtalk_ranges, pxtalk_shape, pxtalk_cal); return status; }