Rename library

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   VL53L3CX_NoShield_1Sensor_poll_Mb06x VL53L3_NoShield_1Sensor_polling_Mb63 X_NUCLEO_53L3A2 53L3A2_Ranging

Committer:
charlesmn
Date:
Wed Jul 21 14:07:59 2021 +0000
Revision:
7:7f1bbf370283
Parent:
5:89031b2f5316
Moved vl53l3cx_class.cpp and .h to 53l3a2_RangingClass

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Charles MacNeill 5:89031b2f5316 1
Charles MacNeill 5:89031b2f5316 2 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
Charles MacNeill 5:89031b2f5316 3 /******************************************************************************
Charles MacNeill 5:89031b2f5316 4 * Copyright (c) 2020, STMicroelectronics - All Rights Reserved
Charles MacNeill 5:89031b2f5316 5
Charles MacNeill 5:89031b2f5316 6 This file is part of VL53LX and is dual licensed,
Charles MacNeill 5:89031b2f5316 7 either GPL-2.0+
Charles MacNeill 5:89031b2f5316 8 or 'BSD 3-clause "New" or "Revised" License' , at your option.
Charles MacNeill 5:89031b2f5316 9 ******************************************************************************
Charles MacNeill 5:89031b2f5316 10 */
Charles MacNeill 5:89031b2f5316 11
Charles MacNeill 5:89031b2f5316 12
Charles MacNeill 5:89031b2f5316 13
Charles MacNeill 5:89031b2f5316 14
Charles MacNeill 5:89031b2f5316 15 #ifndef _VL53LX_API_PRESET_MODES_H_
Charles MacNeill 5:89031b2f5316 16 #define _VL53LX_API_PRESET_MODES_H_
Charles MacNeill 5:89031b2f5316 17
Charles MacNeill 5:89031b2f5316 18 #include "vl53lx_ll_def.h"
Charles MacNeill 5:89031b2f5316 19 #include "vl53lx_dmax_structs.h"
Charles MacNeill 5:89031b2f5316 20
Charles MacNeill 5:89031b2f5316 21 #ifdef __cplusplus
Charles MacNeill 5:89031b2f5316 22 extern "C" {
Charles MacNeill 5:89031b2f5316 23 #endif
Charles MacNeill 5:89031b2f5316 24
Charles MacNeill 5:89031b2f5316 25
Charles MacNeill 5:89031b2f5316 26
Charles MacNeill 5:89031b2f5316 27
Charles MacNeill 5:89031b2f5316 28 VL53LX_Error VL53LX_init_refspadchar_config_struct(
Charles MacNeill 5:89031b2f5316 29 VL53LX_refspadchar_config_t *pdata);
Charles MacNeill 5:89031b2f5316 30
Charles MacNeill 5:89031b2f5316 31
Charles MacNeill 5:89031b2f5316 32
Charles MacNeill 5:89031b2f5316 33
Charles MacNeill 5:89031b2f5316 34 VL53LX_Error VL53LX_init_ssc_config_struct(
Charles MacNeill 5:89031b2f5316 35 VL53LX_ssc_config_t *pdata);
Charles MacNeill 5:89031b2f5316 36
Charles MacNeill 5:89031b2f5316 37
Charles MacNeill 5:89031b2f5316 38
Charles MacNeill 5:89031b2f5316 39
Charles MacNeill 5:89031b2f5316 40 VL53LX_Error VL53LX_init_xtalk_config_struct(
Charles MacNeill 5:89031b2f5316 41 VL53LX_customer_nvm_managed_t *pnvm,
Charles MacNeill 5:89031b2f5316 42 VL53LX_xtalk_config_t *pdata);
Charles MacNeill 5:89031b2f5316 43
Charles MacNeill 5:89031b2f5316 44
Charles MacNeill 5:89031b2f5316 45
Charles MacNeill 5:89031b2f5316 46 VL53LX_Error VL53LX_init_xtalk_extract_config_struct(
Charles MacNeill 5:89031b2f5316 47 VL53LX_xtalkextract_config_t *pdata);
Charles MacNeill 5:89031b2f5316 48
Charles MacNeill 5:89031b2f5316 49
Charles MacNeill 5:89031b2f5316 50
Charles MacNeill 5:89031b2f5316 51 VL53LX_Error VL53LX_init_offset_cal_config_struct(
Charles MacNeill 5:89031b2f5316 52 VL53LX_offsetcal_config_t *pdata);
Charles MacNeill 5:89031b2f5316 53
Charles MacNeill 5:89031b2f5316 54
Charles MacNeill 5:89031b2f5316 55
Charles MacNeill 5:89031b2f5316 56 VL53LX_Error VL53LX_init_zone_cal_config_struct(
Charles MacNeill 5:89031b2f5316 57 VL53LX_zonecal_config_t *pdata);
Charles MacNeill 5:89031b2f5316 58
Charles MacNeill 5:89031b2f5316 59
Charles MacNeill 5:89031b2f5316 60
Charles MacNeill 5:89031b2f5316 61 VL53LX_Error VL53LX_init_hist_post_process_config_struct(
Charles MacNeill 5:89031b2f5316 62 uint8_t xtalk_compensation_enable,
Charles MacNeill 5:89031b2f5316 63 VL53LX_hist_post_process_config_t *pdata);
Charles MacNeill 5:89031b2f5316 64
Charles MacNeill 5:89031b2f5316 65
Charles MacNeill 5:89031b2f5316 66
Charles MacNeill 5:89031b2f5316 67
Charles MacNeill 5:89031b2f5316 68 VL53LX_Error VL53LX_init_dmax_calibration_data_struct(
Charles MacNeill 5:89031b2f5316 69 VL53LX_dmax_calibration_data_t *pdata);
Charles MacNeill 5:89031b2f5316 70
Charles MacNeill 5:89031b2f5316 71
Charles MacNeill 5:89031b2f5316 72
Charles MacNeill 5:89031b2f5316 73
Charles MacNeill 5:89031b2f5316 74 VL53LX_Error VL53LX_init_tuning_parm_storage_struct(
Charles MacNeill 5:89031b2f5316 75 VL53LX_tuning_parm_storage_t *pdata);
Charles MacNeill 5:89031b2f5316 76
Charles MacNeill 5:89031b2f5316 77
Charles MacNeill 5:89031b2f5316 78
Charles MacNeill 5:89031b2f5316 79 VL53LX_Error VL53LX_init_hist_gen3_dmax_config_struct(
Charles MacNeill 5:89031b2f5316 80 VL53LX_hist_gen3_dmax_config_t *pdata);
Charles MacNeill 5:89031b2f5316 81
Charles MacNeill 5:89031b2f5316 82
Charles MacNeill 5:89031b2f5316 83
Charles MacNeill 5:89031b2f5316 84
Charles MacNeill 5:89031b2f5316 85 VL53LX_Error VL53LX_preset_mode_standard_ranging(
Charles MacNeill 5:89031b2f5316 86 VL53LX_static_config_t *pstatic,
Charles MacNeill 5:89031b2f5316 87 VL53LX_histogram_config_t *phistogram,
Charles MacNeill 5:89031b2f5316 88 VL53LX_general_config_t *pgeneral,
Charles MacNeill 5:89031b2f5316 89 VL53LX_timing_config_t *ptiming,
Charles MacNeill 5:89031b2f5316 90 VL53LX_dynamic_config_t *pdynamic,
Charles MacNeill 5:89031b2f5316 91 VL53LX_system_control_t *psystem,
Charles MacNeill 5:89031b2f5316 92 VL53LX_tuning_parm_storage_t *ptuning_parms,
Charles MacNeill 5:89031b2f5316 93 VL53LX_zone_config_t *pzone_cfg);
Charles MacNeill 5:89031b2f5316 94
Charles MacNeill 5:89031b2f5316 95
Charles MacNeill 5:89031b2f5316 96
Charles MacNeill 5:89031b2f5316 97
Charles MacNeill 5:89031b2f5316 98 VL53LX_Error VL53LX_preset_mode_histogram_ranging(
Charles MacNeill 5:89031b2f5316 99 VL53LX_hist_post_process_config_t *phistpostprocess,
Charles MacNeill 5:89031b2f5316 100 VL53LX_static_config_t *pstatic,
Charles MacNeill 5:89031b2f5316 101 VL53LX_histogram_config_t *phistogram,
Charles MacNeill 5:89031b2f5316 102 VL53LX_general_config_t *pgeneral,
Charles MacNeill 5:89031b2f5316 103 VL53LX_timing_config_t *ptiming,
Charles MacNeill 5:89031b2f5316 104 VL53LX_dynamic_config_t *pdynamic,
Charles MacNeill 5:89031b2f5316 105 VL53LX_system_control_t *psystem,
Charles MacNeill 5:89031b2f5316 106 VL53LX_tuning_parm_storage_t *ptuning_parms,
Charles MacNeill 5:89031b2f5316 107 VL53LX_zone_config_t *pzone_cfg);
Charles MacNeill 5:89031b2f5316 108
Charles MacNeill 5:89031b2f5316 109
Charles MacNeill 5:89031b2f5316 110
Charles MacNeill 5:89031b2f5316 111
Charles MacNeill 5:89031b2f5316 112 VL53LX_Error VL53LX_preset_mode_histogram_long_range(
Charles MacNeill 5:89031b2f5316 113 VL53LX_hist_post_process_config_t *phistpostprocess,
Charles MacNeill 5:89031b2f5316 114 VL53LX_static_config_t *pstatic,
Charles MacNeill 5:89031b2f5316 115 VL53LX_histogram_config_t *phistogram,
Charles MacNeill 5:89031b2f5316 116 VL53LX_general_config_t *pgeneral,
Charles MacNeill 5:89031b2f5316 117 VL53LX_timing_config_t *ptiming,
Charles MacNeill 5:89031b2f5316 118 VL53LX_dynamic_config_t *pdynamic,
Charles MacNeill 5:89031b2f5316 119 VL53LX_system_control_t *psystem,
Charles MacNeill 5:89031b2f5316 120 VL53LX_tuning_parm_storage_t *ptuning_parms,
Charles MacNeill 5:89031b2f5316 121 VL53LX_zone_config_t *pzone_cfg);
Charles MacNeill 5:89031b2f5316 122
Charles MacNeill 5:89031b2f5316 123
Charles MacNeill 5:89031b2f5316 124
Charles MacNeill 5:89031b2f5316 125
Charles MacNeill 5:89031b2f5316 126 VL53LX_Error VL53LX_preset_mode_histogram_medium_range(
Charles MacNeill 5:89031b2f5316 127 VL53LX_hist_post_process_config_t *phistpostprocess,
Charles MacNeill 5:89031b2f5316 128 VL53LX_static_config_t *pstatic,
Charles MacNeill 5:89031b2f5316 129 VL53LX_histogram_config_t *phistogram,
Charles MacNeill 5:89031b2f5316 130 VL53LX_general_config_t *pgeneral,
Charles MacNeill 5:89031b2f5316 131 VL53LX_timing_config_t *ptiming,
Charles MacNeill 5:89031b2f5316 132 VL53LX_dynamic_config_t *pdynamic,
Charles MacNeill 5:89031b2f5316 133 VL53LX_system_control_t *psystem,
Charles MacNeill 5:89031b2f5316 134 VL53LX_tuning_parm_storage_t *ptuning_parms,
Charles MacNeill 5:89031b2f5316 135 VL53LX_zone_config_t *pzone_cfg);
Charles MacNeill 5:89031b2f5316 136
Charles MacNeill 5:89031b2f5316 137
Charles MacNeill 5:89031b2f5316 138
Charles MacNeill 5:89031b2f5316 139
Charles MacNeill 5:89031b2f5316 140 VL53LX_Error VL53LX_preset_mode_histogram_short_range(
Charles MacNeill 5:89031b2f5316 141 VL53LX_hist_post_process_config_t *phistpostprocess,
Charles MacNeill 5:89031b2f5316 142 VL53LX_static_config_t *pstatic,
Charles MacNeill 5:89031b2f5316 143 VL53LX_histogram_config_t *phistogram,
Charles MacNeill 5:89031b2f5316 144 VL53LX_general_config_t *pgeneral,
Charles MacNeill 5:89031b2f5316 145 VL53LX_timing_config_t *ptiming,
Charles MacNeill 5:89031b2f5316 146 VL53LX_dynamic_config_t *pdynamic,
Charles MacNeill 5:89031b2f5316 147 VL53LX_system_control_t *psystem,
Charles MacNeill 5:89031b2f5316 148 VL53LX_tuning_parm_storage_t *ptuning_parms,
Charles MacNeill 5:89031b2f5316 149 VL53LX_zone_config_t *pzone_cfg);
Charles MacNeill 5:89031b2f5316 150
Charles MacNeill 5:89031b2f5316 151
Charles MacNeill 5:89031b2f5316 152
Charles MacNeill 5:89031b2f5316 153
Charles MacNeill 5:89031b2f5316 154 void VL53LX_copy_hist_cfg_to_static_cfg(
Charles MacNeill 5:89031b2f5316 155 VL53LX_histogram_config_t *phistogram,
Charles MacNeill 5:89031b2f5316 156 VL53LX_static_config_t *pstatic,
Charles MacNeill 5:89031b2f5316 157 VL53LX_general_config_t *pgeneral,
Charles MacNeill 5:89031b2f5316 158 VL53LX_timing_config_t *ptiming,
Charles MacNeill 5:89031b2f5316 159 VL53LX_dynamic_config_t *pdynamic);
Charles MacNeill 5:89031b2f5316 160
Charles MacNeill 5:89031b2f5316 161
Charles MacNeill 5:89031b2f5316 162
Charles MacNeill 5:89031b2f5316 163 void VL53LX_copy_hist_bins_to_static_cfg(
Charles MacNeill 5:89031b2f5316 164 VL53LX_histogram_config_t *phistogram,
Charles MacNeill 5:89031b2f5316 165 VL53LX_static_config_t *pstatic,
Charles MacNeill 5:89031b2f5316 166 VL53LX_timing_config_t *ptiming);
Charles MacNeill 5:89031b2f5316 167
Charles MacNeill 5:89031b2f5316 168 #ifdef __cplusplus
Charles MacNeill 5:89031b2f5316 169 }
Charles MacNeill 5:89031b2f5316 170 #endif
Charles MacNeill 5:89031b2f5316 171
Charles MacNeill 5:89031b2f5316 172 #endif
Charles MacNeill 5:89031b2f5316 173