Initial release. Mbed library for VL53L1CB
Embed:
(wiki syntax)
Show/hide line numbers
vl53l1_hist_map.h
00001 00002 /******************************************************************************* 00003 * Copyright (c) 2020, STMicroelectronics - All Rights Reserved 00004 00005 This file is part of VL53L1 Core and is dual licensed, 00006 either 'STMicroelectronics 00007 Proprietary license' 00008 or 'BSD 3-clause "New" or "Revised" License' , at your option. 00009 00010 ******************************************************************************** 00011 00012 'STMicroelectronics Proprietary license' 00013 00014 ******************************************************************************** 00015 00016 License terms: STMicroelectronics Proprietary in accordance with licensing 00017 terms at www.st.com/sla0081 00018 00019 STMicroelectronics confidential 00020 Reproduction and Communication of this document is strictly prohibited unless 00021 specifically authorized in writing by STMicroelectronics. 00022 00023 00024 ******************************************************************************** 00025 00026 Alternatively, VL53L1 Core may be distributed under the terms of 00027 'BSD 3-clause "New" or "Revised" License', in which case the following 00028 provisions apply instead of the ones 00029 mentioned above : 00030 00031 ******************************************************************************** 00032 00033 License terms: BSD 3-clause "New" or "Revised" License. 00034 00035 Redistribution and use in source and binary forms, with or without 00036 modification, are permitted provided that the following conditions are met: 00037 00038 1. Redistributions of source code must retain the above copyright notice, this 00039 list of conditions and the following disclaimer. 00040 00041 2. Redistributions in binary form must reproduce the above copyright notice, 00042 this list of conditions and the following disclaimer in the documentation 00043 and/or other materials provided with the distribution. 00044 00045 3. Neither the name of the copyright holder nor the names of its contributors 00046 may be used to endorse or promote products derived from this software 00047 without specific prior written permission. 00048 00049 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00050 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00051 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00052 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00053 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00054 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00055 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00056 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00057 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00058 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00059 00060 00061 ******************************************************************************** 00062 00063 */ 00064 00065 00066 00067 00068 00069 #ifndef _VL53L1_HIST_MAP_H_ 00070 #define _VL53L1_HIST_MAP_H_ 00071 00072 #include "vl53l1_register_map.h" 00073 00074 #ifdef __cplusplus 00075 extern "C" 00076 { 00077 #endif 00078 00079 00080 00081 00082 #define VL53L1_HISTOGRAM_CONFIG__OPCODE_SEQUENCE_0 \ 00083 VL53L1_SIGMA_ESTIMATOR__EFFECTIVE_PULSE_WIDTH_NS 00084 00085 #define VL53L1_HISTOGRAM_CONFIG__OPCODE_SEQUENCE_1 \ 00086 VL53L1_SIGMA_ESTIMATOR__EFFECTIVE_AMBIENT_WIDTH_NS 00087 00088 #define VL53L1_HISTOGRAM_CONFIG__OPCODE_SEQUENCE_2 \ 00089 VL53L1_SIGMA_ESTIMATOR__SIGMA_REF_MM 00090 00091 #define VL53L1_HISTOGRAM_CONFIG__AMB_THRESH_HIGH \ 00092 VL53L1_ALGO__RANGE_IGNORE_THRESHOLD_MCPS 00093 00094 00095 00096 00097 #define VL53L1_RESULT__HISTOGRAM_BIN_0_2 0x008E 00098 #define VL53L1_RESULT__HISTOGRAM_BIN_0_1 0x008F 00099 #define VL53L1_RESULT__HISTOGRAM_BIN_0_0 0x0090 00100 00101 #define VL53L1_RESULT__HISTOGRAM_BIN_23_2 0x00D3 00102 #define VL53L1_RESULT__HISTOGRAM_BIN_23_1 0x00D4 00103 #define VL53L1_RESULT__HISTOGRAM_BIN_23_0 0x00D5 00104 00105 #define VL53L1_RESULT__HISTOGRAM_BIN_23_0_MSB 0x00D9 00106 #define VL53L1_RESULT__HISTOGRAM_BIN_23_0_LSB 0x00DA 00107 00108 00109 00110 #define VL53L1_HISTOGRAM_BIN_DATA_I2C_INDEX \ 00111 VL53L1_RESULT__INTERRUPT_STATUS 00112 #define VL53L1_HISTOGRAM_BIN_DATA_I2C_SIZE_BYTES \ 00113 (VL53L1_RESULT__HISTOGRAM_BIN_23_0_LSB - \ 00114 VL53L1_RESULT__INTERRUPT_STATUS + 1) 00115 00116 #ifdef __cplusplus 00117 } 00118 #endif 00119 00120 #endif 00121 00122
Generated on Tue Jul 12 2022 20:07:14 by 1.7.2