ST Expansion SW Team / VL53L1

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_53L1CB

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vl53l1_platform_user_config.h Source File

vl53l1_platform_user_config.h

00001 
00002 /*******************************************************************************
00003  This file is part of VL53L1 Platform
00004 
00005  Copyright (c) 2020, STMicroelectronics - All Rights Reserved
00006 
00007  License terms: BSD 3-clause "New" or "Revised" License.
00008 
00009  Redistribution and use in source and binary forms, with or without
00010  modification, are permitted provided that the following conditions are met:
00011 
00012  1. Redistributions of source code must retain the above copyright notice, this
00013  list of conditions and the following disclaimer.
00014 
00015  2. Redistributions in binary form must reproduce the above copyright notice,
00016  this list of conditions and the following disclaimer in the documentation
00017  and/or other materials provided with the distribution.
00018 
00019  3. Neither the name of the copyright holder nor the names of its contributors
00020  may be used to endorse or promote products derived from this software
00021  without specific prior written permission.
00022 
00023  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00024  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00025  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00026  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00027  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00028  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00029  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00030  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00031  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00032  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00033 
00034 */
00035 
00036 
00037 
00038 
00039 
00040 #ifndef _VL53L1_PLATFORM_USER_CONFIG_H_
00041 #define _VL53L1_PLATFORM_USER_CONFIG_H_
00042 
00043 #define    VL53L1_BYTES_PER_WORD              2
00044 #define    VL53L1_BYTES_PER_DWORD             4
00045 
00046 
00047 #define VL53L1_BOOT_COMPLETION_POLLING_TIMEOUT_MS     500
00048 #define VL53L1_RANGE_COMPLETION_POLLING_TIMEOUT_MS   2000
00049 #define VL53L1_TEST_COMPLETION_POLLING_TIMEOUT_MS   60000
00050 
00051 #define VL53L1_POLLING_DELAY_MS                         1
00052 
00053 
00054 #define VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS  0x8000
00055 #define VL53L1_TUNINGPARM_PRIVATE_PAGE_BASE_ADDRESS 0xC000
00056 
00057 #define VL53L1_GAIN_FACTOR__STANDARD_DEFAULT       0x0800
00058 
00059 #define VL53L1_GAIN_FACTOR__HISTOGRAM_DEFAULT      0x0800
00060 
00061 
00062 
00063 #define VL53L1_OFFSET_CAL_MIN_EFFECTIVE_SPADS  0x0500
00064 
00065 
00066 #define VL53L1_OFFSET_CAL_MAX_PRE_PEAK_RATE_MCPS   0x1900
00067 
00068 
00069 #define VL53L1_OFFSET_CAL_MAX_SIGMA_MM             0x0040
00070 
00071 
00072 
00073 #define VL53L1_ZONE_CAL_MAX_PRE_PEAK_RATE_MCPS     0x1900
00074 
00075 
00076 #define VL53L1_ZONE_CAL_MAX_SIGMA_MM               0x0040
00077 
00078 
00079 
00080 #define VL53L1_XTALK_EXTRACT_MAX_SIGMA_MM          0x008C
00081 
00082 
00083 
00084 #define VL53L1_MAX_USER_ZONES                16
00085 
00086 
00087 #define VL53L1_MAX_RANGE_RESULTS              4
00088 
00089 
00090 
00091 #define VL53L1_MAX_STRING_LENGTH 512
00092 
00093 #endif
00094 
00095 
00096