Fork, renaming of VL53L1CB-2
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
inc/vl53l1_platform_ipp.h@13:3f1b341901dd, 2021-06-11 (annotated)
- Committer:
- Charles MacNeill
- Date:
- Fri Jun 11 17:08:27 2021 +0100
- Revision:
- 13:3f1b341901dd
- Parent:
- 0:3ac96e360672
changing case of vl53l1cb.* so it works in linux
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
charlesmn | 0:3ac96e360672 | 1 | |
charlesmn | 0:3ac96e360672 | 2 | /******************************************************************************* |
charlesmn | 0:3ac96e360672 | 3 | This file is part of VL53L1 Platform |
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: BSD 3-clause "New" or "Revised" License. |
charlesmn | 0:3ac96e360672 | 8 | |
charlesmn | 0:3ac96e360672 | 9 | Redistribution and use in source and binary forms, with or without |
charlesmn | 0:3ac96e360672 | 10 | modification, are permitted provided that the following conditions are met: |
charlesmn | 0:3ac96e360672 | 11 | |
charlesmn | 0:3ac96e360672 | 12 | 1. Redistributions of source code must retain the above copyright notice, this |
charlesmn | 0:3ac96e360672 | 13 | list of conditions and the following disclaimer. |
charlesmn | 0:3ac96e360672 | 14 | |
charlesmn | 0:3ac96e360672 | 15 | 2. Redistributions in binary form must reproduce the above copyright notice, |
charlesmn | 0:3ac96e360672 | 16 | this list of conditions and the following disclaimer in the documentation |
charlesmn | 0:3ac96e360672 | 17 | and/or other materials provided with the distribution. |
charlesmn | 0:3ac96e360672 | 18 | |
charlesmn | 0:3ac96e360672 | 19 | 3. Neither the name of the copyright holder nor the names of its contributors |
charlesmn | 0:3ac96e360672 | 20 | may be used to endorse or promote products derived from this software |
charlesmn | 0:3ac96e360672 | 21 | without specific prior written permission. |
charlesmn | 0:3ac96e360672 | 22 | |
charlesmn | 0:3ac96e360672 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
charlesmn | 0:3ac96e360672 | 24 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
charlesmn | 0:3ac96e360672 | 25 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
charlesmn | 0:3ac96e360672 | 26 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
charlesmn | 0:3ac96e360672 | 27 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
charlesmn | 0:3ac96e360672 | 28 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
charlesmn | 0:3ac96e360672 | 29 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
charlesmn | 0:3ac96e360672 | 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
charlesmn | 0:3ac96e360672 | 31 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
charlesmn | 0:3ac96e360672 | 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
charlesmn | 0:3ac96e360672 | 33 | |
charlesmn | 0:3ac96e360672 | 34 | */ |
charlesmn | 0:3ac96e360672 | 35 | |
charlesmn | 0:3ac96e360672 | 36 | |
charlesmn | 0:3ac96e360672 | 37 | |
charlesmn | 0:3ac96e360672 | 38 | #ifndef _VL53L1_PLATFORM_IPP_H_ |
charlesmn | 0:3ac96e360672 | 39 | #define _VL53L1_PLATFORM_IPP_H_ |
charlesmn | 0:3ac96e360672 | 40 | |
charlesmn | 0:3ac96e360672 | 41 | #include "vl53l1_ll_def.h" |
charlesmn | 0:3ac96e360672 | 42 | |
charlesmn | 0:3ac96e360672 | 43 | #ifdef __cplusplus |
charlesmn | 0:3ac96e360672 | 44 | extern "C" |
charlesmn | 0:3ac96e360672 | 45 | { |
charlesmn | 0:3ac96e360672 | 46 | #endif |
charlesmn | 0:3ac96e360672 | 47 | |
charlesmn | 0:3ac96e360672 | 48 | |
charlesmn | 0:3ac96e360672 | 49 | |
charlesmn | 0:3ac96e360672 | 50 | |
charlesmn | 0:3ac96e360672 | 51 | |
charlesmn | 0:3ac96e360672 | 52 | VL53L1_Error VL53L1_ipp_hist_process_data( |
charlesmn | 0:3ac96e360672 | 53 | VL53L1_DEV Dev, |
charlesmn | 0:3ac96e360672 | 54 | VL53L1_dmax_calibration_data_t *pdmax_cal, |
charlesmn | 0:3ac96e360672 | 55 | VL53L1_hist_gen3_dmax_config_t *pdmax_cfg, |
charlesmn | 0:3ac96e360672 | 56 | VL53L1_hist_post_process_config_t *ppost_cfg, |
charlesmn | 0:3ac96e360672 | 57 | VL53L1_histogram_bin_data_t *pbins, |
charlesmn | 0:3ac96e360672 | 58 | VL53L1_xtalk_histogram_data_t *pxtalk, |
charlesmn | 0:3ac96e360672 | 59 | uint8_t *pArea1, |
charlesmn | 0:3ac96e360672 | 60 | uint8_t *pArea2, |
charlesmn | 0:3ac96e360672 | 61 | uint8_t *phisto_merge_nb, |
charlesmn | 0:3ac96e360672 | 62 | VL53L1_range_results_t *presults); |
charlesmn | 0:3ac96e360672 | 63 | |
charlesmn | 0:3ac96e360672 | 64 | |
charlesmn | 0:3ac96e360672 | 65 | |
charlesmn | 0:3ac96e360672 | 66 | |
charlesmn | 0:3ac96e360672 | 67 | VL53L1_Error VL53L1_ipp_hist_ambient_dmax( |
charlesmn | 0:3ac96e360672 | 68 | VL53L1_DEV Dev, |
charlesmn | 0:3ac96e360672 | 69 | uint16_t target_reflectance, |
charlesmn | 0:3ac96e360672 | 70 | VL53L1_dmax_calibration_data_t *pdmax_cal, |
charlesmn | 0:3ac96e360672 | 71 | VL53L1_hist_gen3_dmax_config_t *pdmax_cfg, |
charlesmn | 0:3ac96e360672 | 72 | VL53L1_histogram_bin_data_t *pbins, |
charlesmn | 0:3ac96e360672 | 73 | int16_t *pambient_dmax_mm); |
charlesmn | 0:3ac96e360672 | 74 | |
charlesmn | 0:3ac96e360672 | 75 | |
charlesmn | 0:3ac96e360672 | 76 | |
charlesmn | 0:3ac96e360672 | 77 | |
charlesmn | 0:3ac96e360672 | 78 | VL53L1_Error VL53L1_ipp_xtalk_calibration_process_data( |
charlesmn | 0:3ac96e360672 | 79 | VL53L1_DEV Dev, |
charlesmn | 0:3ac96e360672 | 80 | VL53L1_xtalk_range_results_t *pxtalk_ranges, |
charlesmn | 0:3ac96e360672 | 81 | VL53L1_xtalk_histogram_data_t *pxtalk_shape, |
charlesmn | 0:3ac96e360672 | 82 | VL53L1_xtalk_calibration_results_t *pxtalk_cal); |
charlesmn | 0:3ac96e360672 | 83 | |
charlesmn | 0:3ac96e360672 | 84 | |
charlesmn | 0:3ac96e360672 | 85 | |
charlesmn | 0:3ac96e360672 | 86 | |
charlesmn | 0:3ac96e360672 | 87 | VL53L1_Error VL53L1_ipp_hist_xtalk_correction( |
charlesmn | 0:3ac96e360672 | 88 | VL53L1_DEV Dev, |
charlesmn | 0:3ac96e360672 | 89 | VL53L1_customer_nvm_managed_t *pcustomer, |
charlesmn | 0:3ac96e360672 | 90 | VL53L1_dynamic_config_t *pdyn_cfg, |
charlesmn | 0:3ac96e360672 | 91 | VL53L1_xtalk_histogram_data_t *pxtalk_shape, |
charlesmn | 0:3ac96e360672 | 92 | VL53L1_histogram_bin_data_t *pip_hist_data, |
charlesmn | 0:3ac96e360672 | 93 | VL53L1_histogram_bin_data_t *pop_hist_data, |
charlesmn | 0:3ac96e360672 | 94 | VL53L1_histogram_bin_data_t *pxtalk_count_data); |
charlesmn | 0:3ac96e360672 | 95 | |
charlesmn | 0:3ac96e360672 | 96 | |
charlesmn | 0:3ac96e360672 | 97 | |
charlesmn | 0:3ac96e360672 | 98 | VL53L1_Error VL53L1_ipp_generate_dual_reflectance_xtalk_samples( |
charlesmn | 0:3ac96e360672 | 99 | VL53L1_DEV Dev, |
charlesmn | 0:3ac96e360672 | 100 | VL53L1_xtalk_range_results_t *pxtalk_results, |
charlesmn | 0:3ac96e360672 | 101 | uint16_t expected_target_distance_mm, |
charlesmn | 0:3ac96e360672 | 102 | uint8_t higher_reflectance, |
charlesmn | 0:3ac96e360672 | 103 | VL53L1_histogram_bin_data_t *pxtalk_avg_samples); |
charlesmn | 0:3ac96e360672 | 104 | |
charlesmn | 0:3ac96e360672 | 105 | |
charlesmn | 0:3ac96e360672 | 106 | |
charlesmn | 0:3ac96e360672 | 107 | #ifdef __cplusplus |
charlesmn | 0:3ac96e360672 | 108 | } |
charlesmn | 0:3ac96e360672 | 109 | #endif |
charlesmn | 0:3ac96e360672 | 110 | |
charlesmn | 0:3ac96e360672 | 111 | #endif |
charlesmn | 0:3ac96e360672 | 112 | |
charlesmn | 0:3ac96e360672 | 113 | |
charlesmn | 0:3ac96e360672 | 114 |