Fork, renaming of VL53L1CB-2

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_53L1CB

Committer:
Charles MacNeill
Date:
Fri Jun 11 17:08:27 2021 +0100
Revision:
13:3f1b341901dd
Parent:
7:1add29d51e72
changing case of vl53l1cb.* so it works in linux

Who changed what in which revision?

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