|
| 1 | +/** |
| 2 | + ****************************************************************************** |
| 3 | + * @file platform_config_default.h |
| 4 | + * @author STMicroelectronics |
| 5 | + * @version V1.0.0 |
| 6 | + * @date 11 November 2021 |
| 7 | + * @brief Header file with the default platform settings. |
| 8 | + ****************************************************************************** |
| 9 | + * @attention |
| 10 | + * |
| 11 | + * <h2><center>© COPYRIGHT(c) 2021 STMicroelectronics</center></h2> |
| 12 | + * |
| 13 | + * Redistribution and use in source and binary forms, with or without modification, |
| 14 | + * are permitted provided that the following conditions are met: |
| 15 | + * 1. Redistributions of source code must retain the above copyright notice, |
| 16 | + * this list of conditions and the following disclaimer. |
| 17 | + * 2. Redistributions in binary form must reproduce the above copyright notice, |
| 18 | + * this list of conditions and the following disclaimer in the documentation |
| 19 | + * and/or other materials provided with the distribution. |
| 20 | + * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| 21 | + * may be used to endorse or promote products derived from this software |
| 22 | + * without specific prior written permission. |
| 23 | + * |
| 24 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 25 | + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 26 | + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 27 | + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 28 | + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 29 | + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 30 | + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 31 | + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 32 | + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 33 | + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 34 | + * |
| 35 | + ****************************************************************************** |
| 36 | + */ |
| 37 | + |
| 38 | +#ifndef _PLATFORM_CONFIG_DEFAULT_H_ |
| 39 | +#define _PLATFORM_CONFIG_DEFAULT_H_ |
| 40 | + |
| 41 | +/* |
| 42 | + * @brief If you want to customize these defines you can add in the application |
| 43 | + * code the file platform_config_custom.h file where you can override some of |
| 44 | + * these defines. |
| 45 | + */ |
| 46 | + |
| 47 | +/* |
| 48 | + * @brief The macro below is used to define the number of target per zone sent |
| 49 | + * through I2C. This value can be changed by user, in order to tune I2C |
| 50 | + * transaction, and also the total memory size (a lower number of target per |
| 51 | + * zone means a lower RAM). The value must be between 1 and 4. |
| 52 | + */ |
| 53 | + |
| 54 | +#ifndef VL53L7CX_NB_TARGET_PER_ZONE |
| 55 | + #define VL53L7CX_NB_TARGET_PER_ZONE 1U |
| 56 | +#endif |
| 57 | + |
| 58 | +/* |
| 59 | + * @brief The macro below can be used to avoid data conversion into the driver. |
| 60 | + * By default there is a conversion between firmware and user data. Using this macro |
| 61 | + * allows to use the firmware format instead of user format. The firmware format allows |
| 62 | + * an increased precision. |
| 63 | + */ |
| 64 | + |
| 65 | +// #define VL53L7CX_USE_RAW_FORMAT |
| 66 | + |
| 67 | +/* |
| 68 | + * @brief All macro below are used to configure the sensor output. User can |
| 69 | + * define some macros if he wants to disable selected output, in order to reduce |
| 70 | + * I2C access. |
| 71 | + */ |
| 72 | + |
| 73 | +#define VL53L7CX_DISABLE_AMBIENT_PER_SPAD |
| 74 | +#define VL53L7CX_DISABLE_NB_SPADS_ENABLED |
| 75 | +#define VL53L7CX_DISABLE_NB_TARGET_DETECTED |
| 76 | +#define VL53L7CX_DISABLE_SIGNAL_PER_SPAD |
| 77 | +#define VL53L7CX_DISABLE_RANGE_SIGMA_MM |
| 78 | +// #define VL53L7CX_DISABLE_DISTANCE_MM |
| 79 | +#define VL53L7CX_DISABLE_REFLECTANCE_PERCENT |
| 80 | +#define VL53L7CX_DISABLE_TARGET_STATUS |
| 81 | +#define VL53L7CX_DISABLE_MOTION_INDICATOR |
| 82 | + |
| 83 | +#endif // _PLATFORM_CONFIG_DEFAULT_H_ |
0 commit comments