Fork, renaming of VL53L1CB-2

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_53L1CB

Committer:
charlesmn
Date:
Fri Nov 06 10:06:37 2020 +0000
Revision:
0:3ac96e360672
Child:
7:1add29d51e72
Library for ST Vl53L1A1 time of flight sensor.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
charlesmn 0:3ac96e360672 1
charlesmn 0:3ac96e360672 2 /*******************************************************************************
charlesmn 0:3ac96e360672 3 This file is part of VL53L1 Protected
charlesmn 0:3ac96e360672 4
charlesmn 0:3ac96e360672 5 Copyright (c) 2020, STMicroelectronics - All Rights Reserved
charlesmn 0:3ac96e360672 6
charlesmn 0:3ac96e360672 7 License terms: STMicroelectronics Proprietary in accordance with licensing
charlesmn 0:3ac96e360672 8 terms at www.st.com/sla0081
charlesmn 0:3ac96e360672 9
charlesmn 0:3ac96e360672 10 STMicroelectronics confidential
charlesmn 0:3ac96e360672 11 Reproduction and Communication of this document is strictly prohibited unless
charlesmn 0:3ac96e360672 12 specifically authorized in writing by STMicroelectronics.
charlesmn 0:3ac96e360672 13
charlesmn 0:3ac96e360672 14 */
charlesmn 0:3ac96e360672 15
charlesmn 0:3ac96e360672 16
charlesmn 0:3ac96e360672 17
charlesmn 0:3ac96e360672 18
charlesmn 0:3ac96e360672 19
charlesmn 0:3ac96e360672 20
charlesmn 0:3ac96e360672 21
charlesmn 0:3ac96e360672 22 #ifndef _VL53L1_XTALK_H_
charlesmn 0:3ac96e360672 23 #define _VL53L1_XTALK_H_
charlesmn 0:3ac96e360672 24
charlesmn 0:3ac96e360672 25 #include "vl53l1_types.h"
charlesmn 0:3ac96e360672 26 #include "vl53l1_ll_def.h"
charlesmn 0:3ac96e360672 27 #include "vl53l1_xtalk_private_structs.h"
charlesmn 0:3ac96e360672 28
charlesmn 0:3ac96e360672 29 #ifdef __cplusplus
charlesmn 0:3ac96e360672 30 extern "C" {
charlesmn 0:3ac96e360672 31 #endif
charlesmn 0:3ac96e360672 32
charlesmn 0:3ac96e360672 33
charlesmn 0:3ac96e360672 34
charlesmn 0:3ac96e360672 35
charlesmn 0:3ac96e360672 36 VL53L1_Error VL53L1_xtalk_calibration_process_data(
charlesmn 0:3ac96e360672 37 VL53L1_xtalk_range_results_t *pxtalk_ranges,
charlesmn 0:3ac96e360672 38 VL53L1_xtalk_histogram_data_t *pxtalk_shape,
charlesmn 0:3ac96e360672 39 VL53L1_xtalk_calibration_results_t *pxtalk_cal);
charlesmn 0:3ac96e360672 40
charlesmn 0:3ac96e360672 41
charlesmn 0:3ac96e360672 42
charlesmn 0:3ac96e360672 43
charlesmn 0:3ac96e360672 44 VL53L1_Error VL53L1_f_049(
charlesmn 0:3ac96e360672 45 VL53L1_histogram_bin_data_t *pavg_bins,
charlesmn 0:3ac96e360672 46 VL53L1_xtalk_algo_data_t *pdebug,
charlesmn 0:3ac96e360672 47 VL53L1_xtalk_range_data_t *pxtalk_data,
charlesmn 0:3ac96e360672 48 uint8_t histogram__window_start,
charlesmn 0:3ac96e360672 49 uint8_t histogram__window_end,
charlesmn 0:3ac96e360672 50 VL53L1_xtalk_histogram_shape_t *pxtalk_shape);
charlesmn 0:3ac96e360672 51
charlesmn 0:3ac96e360672 52
charlesmn 0:3ac96e360672 53
charlesmn 0:3ac96e360672 54 VL53L1_Error VL53L1_f_047(
charlesmn 0:3ac96e360672 55 VL53L1_xtalk_range_results_t *pxtalk_results,
charlesmn 0:3ac96e360672 56 VL53L1_xtalk_algo_data_t *pdebug,
charlesmn 0:3ac96e360672 57 int16_t *xgradient,
charlesmn 0:3ac96e360672 58 int16_t *ygradient);
charlesmn 0:3ac96e360672 59
charlesmn 0:3ac96e360672 60
charlesmn 0:3ac96e360672 61
charlesmn 0:3ac96e360672 62
charlesmn 0:3ac96e360672 63 VL53L1_Error VL53L1_f_048(
charlesmn 0:3ac96e360672 64 VL53L1_xtalk_range_data_t *pxtalk_data,
charlesmn 0:3ac96e360672 65 VL53L1_xtalk_algo_data_t *pdebug,
charlesmn 0:3ac96e360672 66 uint32_t *xtalk_mean_offset_kcps);
charlesmn 0:3ac96e360672 67
charlesmn 0:3ac96e360672 68
charlesmn 0:3ac96e360672 69
charlesmn 0:3ac96e360672 70
charlesmn 0:3ac96e360672 71 VL53L1_Error VL53L1_f_053(
charlesmn 0:3ac96e360672 72 VL53L1_histogram_bin_data_t *phist_data,
charlesmn 0:3ac96e360672 73 VL53L1_xtalk_range_data_t *pxtalk_data,
charlesmn 0:3ac96e360672 74 VL53L1_xtalk_algo_data_t *pdebug,
charlesmn 0:3ac96e360672 75 VL53L1_xtalk_histogram_shape_t *pxtalk_histo);
charlesmn 0:3ac96e360672 76
charlesmn 0:3ac96e360672 77
charlesmn 0:3ac96e360672 78
charlesmn 0:3ac96e360672 79
charlesmn 0:3ac96e360672 80
charlesmn 0:3ac96e360672 81 VL53L1_Error VL53L1_f_040(
charlesmn 0:3ac96e360672 82 uint32_t mean_offset,
charlesmn 0:3ac96e360672 83 int16_t xgradient,
charlesmn 0:3ac96e360672 84 int16_t ygradient,
charlesmn 0:3ac96e360672 85 int8_t centre_offset_x,
charlesmn 0:3ac96e360672 86 int8_t centre_offset_y,
charlesmn 0:3ac96e360672 87 uint16_t roi_effective_spads,
charlesmn 0:3ac96e360672 88 uint8_t roi_centre_spad,
charlesmn 0:3ac96e360672 89 uint8_t roi_xy_size,
charlesmn 0:3ac96e360672 90 uint32_t *xtalk_rate_kcps);
charlesmn 0:3ac96e360672 91
charlesmn 0:3ac96e360672 92
charlesmn 0:3ac96e360672 93
charlesmn 0:3ac96e360672 94
charlesmn 0:3ac96e360672 95 VL53L1_Error VL53L1_f_041(
charlesmn 0:3ac96e360672 96 VL53L1_histogram_bin_data_t *phist_data,
charlesmn 0:3ac96e360672 97 VL53L1_xtalk_histogram_shape_t *pxtalk_data,
charlesmn 0:3ac96e360672 98 uint32_t xtalk_rate_kcps,
charlesmn 0:3ac96e360672 99 VL53L1_histogram_bin_data_t *pxtalkcount_data);
charlesmn 0:3ac96e360672 100
charlesmn 0:3ac96e360672 101
charlesmn 0:3ac96e360672 102
charlesmn 0:3ac96e360672 103
charlesmn 0:3ac96e360672 104 VL53L1_Error VL53L1_f_055(
charlesmn 0:3ac96e360672 105 VL53L1_histogram_bin_data_t *phist_data,
charlesmn 0:3ac96e360672 106 VL53L1_histogram_bin_data_t *pxtalk_data,
charlesmn 0:3ac96e360672 107 uint8_t xtalk_bin_offset);
charlesmn 0:3ac96e360672 108
charlesmn 0:3ac96e360672 109
charlesmn 0:3ac96e360672 110
charlesmn 0:3ac96e360672 111 VL53L1_Error VL53L1_f_052(
charlesmn 0:3ac96e360672 112 VL53L1_histogram_bin_data_t *pxtalk_data,
charlesmn 0:3ac96e360672 113 uint32_t amb_threshold,
charlesmn 0:3ac96e360672 114 uint8_t VL53L1_p_022,
charlesmn 0:3ac96e360672 115 uint8_t VL53L1_p_026);
charlesmn 0:3ac96e360672 116
charlesmn 0:3ac96e360672 117
charlesmn 0:3ac96e360672 118
charlesmn 0:3ac96e360672 119 VL53L1_Error VL53L1_f_054(
charlesmn 0:3ac96e360672 120 VL53L1_customer_nvm_managed_t *pcustomer,
charlesmn 0:3ac96e360672 121 VL53L1_dynamic_config_t *pdyn_cfg,
charlesmn 0:3ac96e360672 122 VL53L1_xtalk_histogram_data_t *pxtalk_shape,
charlesmn 0:3ac96e360672 123 VL53L1_histogram_bin_data_t *pip_hist_data,
charlesmn 0:3ac96e360672 124 VL53L1_histogram_bin_data_t *pop_hist_data,
charlesmn 0:3ac96e360672 125 VL53L1_histogram_bin_data_t *pxtalk_count_data);
charlesmn 0:3ac96e360672 126
charlesmn 0:3ac96e360672 127
charlesmn 0:3ac96e360672 128
charlesmn 0:3ac96e360672 129
charlesmn 0:3ac96e360672 130 VL53L1_Error VL53L1_f_051(
charlesmn 0:3ac96e360672 131 uint8_t sigma_mult,
charlesmn 0:3ac96e360672 132 int32_t VL53L1_p_004,
charlesmn 0:3ac96e360672 133 uint32_t *ambient_noise);
charlesmn 0:3ac96e360672 134
charlesmn 0:3ac96e360672 135
charlesmn 0:3ac96e360672 136
charlesmn 0:3ac96e360672 137 VL53L1_Error VL53L1_generate_dual_reflectance_xtalk_samples(
charlesmn 0:3ac96e360672 138 VL53L1_xtalk_range_results_t *pxtalk_results,
charlesmn 0:3ac96e360672 139 uint16_t expected_target_distance_mm,
charlesmn 0:3ac96e360672 140 uint8_t higher_reflectance,
charlesmn 0:3ac96e360672 141 VL53L1_histogram_bin_data_t *pxtalk_avg_samples
charlesmn 0:3ac96e360672 142 );
charlesmn 0:3ac96e360672 143
charlesmn 0:3ac96e360672 144
charlesmn 0:3ac96e360672 145
charlesmn 0:3ac96e360672 146
charlesmn 0:3ac96e360672 147
charlesmn 0:3ac96e360672 148 VL53L1_Error VL53L1_f_050(
charlesmn 0:3ac96e360672 149 VL53L1_histogram_bin_data_t *pzone_avg_1,
charlesmn 0:3ac96e360672 150 VL53L1_histogram_bin_data_t *pzone_avg_2,
charlesmn 0:3ac96e360672 151 uint16_t expected_target_distance,
charlesmn 0:3ac96e360672 152 uint8_t subtract_amb,
charlesmn 0:3ac96e360672 153 uint8_t higher_reflectance,
charlesmn 0:3ac96e360672 154 VL53L1_histogram_bin_data_t *pxtalk_output
charlesmn 0:3ac96e360672 155 );
charlesmn 0:3ac96e360672 156
charlesmn 0:3ac96e360672 157 #ifdef __cplusplus
charlesmn 0:3ac96e360672 158 }
charlesmn 0:3ac96e360672 159 #endif
charlesmn 0:3ac96e360672 160
charlesmn 0:3ac96e360672 161 #endif
charlesmn 0:3ac96e360672 162
charlesmn 0:3ac96e360672 163