VL53L0X World smallest Time-of-Flight (ToF) ranging sensor

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   HelloWorld_ST_Sensors mbed-os-mqtt-client Multi_VL53L0X DISCO-IOT01_HomeEnv ... more

Fork of VL53L0X by Nicola Capovilla

Committer:
johnAlexander
Date:
Thu Jun 06 09:21:39 2019 +0000
Revision:
6:8ac15bf6d635
Publish mbed-certified sensor class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
johnAlexander 6:8ac15bf6d635 1 /*******************************************************************************
johnAlexander 6:8ac15bf6d635 2 Copyright © 2016, STMicroelectronics International N.V.
johnAlexander 6:8ac15bf6d635 3 All rights reserved.
johnAlexander 6:8ac15bf6d635 4
johnAlexander 6:8ac15bf6d635 5 Redistribution and use in source and binary forms, with or without
johnAlexander 6:8ac15bf6d635 6 modification, are permitted provided that the following conditions are met:
johnAlexander 6:8ac15bf6d635 7 * Redistributions of source code must retain the above copyright
johnAlexander 6:8ac15bf6d635 8 notice, this list of conditions and the following disclaimer.
johnAlexander 6:8ac15bf6d635 9 * Redistributions in binary form must reproduce the above copyright
johnAlexander 6:8ac15bf6d635 10 notice, this list of conditions and the following disclaimer in the
johnAlexander 6:8ac15bf6d635 11 documentation and/or other materials provided with the distribution.
johnAlexander 6:8ac15bf6d635 12 * Neither the name of STMicroelectronics nor the
johnAlexander 6:8ac15bf6d635 13 names of its contributors may be used to endorse or promote products
johnAlexander 6:8ac15bf6d635 14 derived from this software without specific prior written permission.
johnAlexander 6:8ac15bf6d635 15
johnAlexander 6:8ac15bf6d635 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
johnAlexander 6:8ac15bf6d635 17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
johnAlexander 6:8ac15bf6d635 18 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
johnAlexander 6:8ac15bf6d635 19 NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED.
johnAlexander 6:8ac15bf6d635 20 IN NO EVENT SHALL STMICROELECTRONICS INTERNATIONAL N.V. BE LIABLE FOR ANY
johnAlexander 6:8ac15bf6d635 21 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
johnAlexander 6:8ac15bf6d635 22 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
johnAlexander 6:8ac15bf6d635 23 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
johnAlexander 6:8ac15bf6d635 24 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
johnAlexander 6:8ac15bf6d635 25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
johnAlexander 6:8ac15bf6d635 26 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
johnAlexander 6:8ac15bf6d635 27 *******************************************************************************/
johnAlexander 6:8ac15bf6d635 28
johnAlexander 6:8ac15bf6d635 29
johnAlexander 6:8ac15bf6d635 30 #ifndef _VL53L0X_TUNING_H_
johnAlexander 6:8ac15bf6d635 31 #define _VL53L0X_TUNING_H_
johnAlexander 6:8ac15bf6d635 32
johnAlexander 6:8ac15bf6d635 33 #include "VL53L0X_def.h"
johnAlexander 6:8ac15bf6d635 34
johnAlexander 6:8ac15bf6d635 35
johnAlexander 6:8ac15bf6d635 36 #ifdef __cplusplus
johnAlexander 6:8ac15bf6d635 37 extern "C" {
johnAlexander 6:8ac15bf6d635 38 #endif
johnAlexander 6:8ac15bf6d635 39
johnAlexander 6:8ac15bf6d635 40
johnAlexander 6:8ac15bf6d635 41 uint8_t DefaultTuningSettings[] = {
johnAlexander 6:8ac15bf6d635 42
johnAlexander 6:8ac15bf6d635 43 /* update 02/11/2015_v36 */
johnAlexander 6:8ac15bf6d635 44 0x01, 0xFF, 0x01,
johnAlexander 6:8ac15bf6d635 45 0x01, 0x00, 0x00,
johnAlexander 6:8ac15bf6d635 46
johnAlexander 6:8ac15bf6d635 47 0x01, 0xFF, 0x00,
johnAlexander 6:8ac15bf6d635 48 0x01, 0x09, 0x00,
johnAlexander 6:8ac15bf6d635 49 0x01, 0x10, 0x00,
johnAlexander 6:8ac15bf6d635 50 0x01, 0x11, 0x00,
johnAlexander 6:8ac15bf6d635 51
johnAlexander 6:8ac15bf6d635 52 0x01, 0x24, 0x01,
johnAlexander 6:8ac15bf6d635 53 0x01, 0x25, 0xff,
johnAlexander 6:8ac15bf6d635 54 0x01, 0x75, 0x00,
johnAlexander 6:8ac15bf6d635 55
johnAlexander 6:8ac15bf6d635 56 0x01, 0xFF, 0x01,
johnAlexander 6:8ac15bf6d635 57 0x01, 0x4e, 0x2c,
johnAlexander 6:8ac15bf6d635 58 0x01, 0x48, 0x00,
johnAlexander 6:8ac15bf6d635 59 0x01, 0x30, 0x20,
johnAlexander 6:8ac15bf6d635 60
johnAlexander 6:8ac15bf6d635 61 0x01, 0xFF, 0x00,
johnAlexander 6:8ac15bf6d635 62 0x01, 0x30, 0x09, /* mja changed from 0x64. */
johnAlexander 6:8ac15bf6d635 63 0x01, 0x54, 0x00,
johnAlexander 6:8ac15bf6d635 64 0x01, 0x31, 0x04,
johnAlexander 6:8ac15bf6d635 65 0x01, 0x32, 0x03,
johnAlexander 6:8ac15bf6d635 66 0x01, 0x40, 0x83,
johnAlexander 6:8ac15bf6d635 67 0x01, 0x46, 0x25,
johnAlexander 6:8ac15bf6d635 68 0x01, 0x60, 0x00,
johnAlexander 6:8ac15bf6d635 69 0x01, 0x27, 0x00,
johnAlexander 6:8ac15bf6d635 70 0x01, 0x50, 0x06,
johnAlexander 6:8ac15bf6d635 71 0x01, 0x51, 0x00,
johnAlexander 6:8ac15bf6d635 72 0x01, 0x52, 0x96,
johnAlexander 6:8ac15bf6d635 73 0x01, 0x56, 0x08,
johnAlexander 6:8ac15bf6d635 74 0x01, 0x57, 0x30,
johnAlexander 6:8ac15bf6d635 75 0x01, 0x61, 0x00,
johnAlexander 6:8ac15bf6d635 76 0x01, 0x62, 0x00,
johnAlexander 6:8ac15bf6d635 77 0x01, 0x64, 0x00,
johnAlexander 6:8ac15bf6d635 78 0x01, 0x65, 0x00,
johnAlexander 6:8ac15bf6d635 79 0x01, 0x66, 0xa0,
johnAlexander 6:8ac15bf6d635 80
johnAlexander 6:8ac15bf6d635 81 0x01, 0xFF, 0x01,
johnAlexander 6:8ac15bf6d635 82 0x01, 0x22, 0x32,
johnAlexander 6:8ac15bf6d635 83 0x01, 0x47, 0x14,
johnAlexander 6:8ac15bf6d635 84 0x01, 0x49, 0xff,
johnAlexander 6:8ac15bf6d635 85 0x01, 0x4a, 0x00,
johnAlexander 6:8ac15bf6d635 86
johnAlexander 6:8ac15bf6d635 87 0x01, 0xFF, 0x00,
johnAlexander 6:8ac15bf6d635 88 0x01, 0x7a, 0x0a,
johnAlexander 6:8ac15bf6d635 89 0x01, 0x7b, 0x00,
johnAlexander 6:8ac15bf6d635 90 0x01, 0x78, 0x21,
johnAlexander 6:8ac15bf6d635 91
johnAlexander 6:8ac15bf6d635 92 0x01, 0xFF, 0x01,
johnAlexander 6:8ac15bf6d635 93 0x01, 0x23, 0x34,
johnAlexander 6:8ac15bf6d635 94 0x01, 0x42, 0x00,
johnAlexander 6:8ac15bf6d635 95 0x01, 0x44, 0xff,
johnAlexander 6:8ac15bf6d635 96 0x01, 0x45, 0x26,
johnAlexander 6:8ac15bf6d635 97 0x01, 0x46, 0x05,
johnAlexander 6:8ac15bf6d635 98 0x01, 0x40, 0x40,
johnAlexander 6:8ac15bf6d635 99 0x01, 0x0E, 0x06,
johnAlexander 6:8ac15bf6d635 100 0x01, 0x20, 0x1a,
johnAlexander 6:8ac15bf6d635 101 0x01, 0x43, 0x40,
johnAlexander 6:8ac15bf6d635 102
johnAlexander 6:8ac15bf6d635 103 0x01, 0xFF, 0x00,
johnAlexander 6:8ac15bf6d635 104 0x01, 0x34, 0x03,
johnAlexander 6:8ac15bf6d635 105 0x01, 0x35, 0x44,
johnAlexander 6:8ac15bf6d635 106
johnAlexander 6:8ac15bf6d635 107 0x01, 0xFF, 0x01,
johnAlexander 6:8ac15bf6d635 108 0x01, 0x31, 0x04,
johnAlexander 6:8ac15bf6d635 109 0x01, 0x4b, 0x09,
johnAlexander 6:8ac15bf6d635 110 0x01, 0x4c, 0x05,
johnAlexander 6:8ac15bf6d635 111 0x01, 0x4d, 0x04,
johnAlexander 6:8ac15bf6d635 112
johnAlexander 6:8ac15bf6d635 113
johnAlexander 6:8ac15bf6d635 114 0x01, 0xFF, 0x00,
johnAlexander 6:8ac15bf6d635 115 0x01, 0x44, 0x00,
johnAlexander 6:8ac15bf6d635 116 0x01, 0x45, 0x20,
johnAlexander 6:8ac15bf6d635 117 0x01, 0x47, 0x08,
johnAlexander 6:8ac15bf6d635 118 0x01, 0x48, 0x28,
johnAlexander 6:8ac15bf6d635 119 0x01, 0x67, 0x00,
johnAlexander 6:8ac15bf6d635 120 0x01, 0x70, 0x04,
johnAlexander 6:8ac15bf6d635 121 0x01, 0x71, 0x01,
johnAlexander 6:8ac15bf6d635 122 0x01, 0x72, 0xfe,
johnAlexander 6:8ac15bf6d635 123 0x01, 0x76, 0x00,
johnAlexander 6:8ac15bf6d635 124 0x01, 0x77, 0x00,
johnAlexander 6:8ac15bf6d635 125
johnAlexander 6:8ac15bf6d635 126 0x01, 0xFF, 0x01,
johnAlexander 6:8ac15bf6d635 127 0x01, 0x0d, 0x01,
johnAlexander 6:8ac15bf6d635 128
johnAlexander 6:8ac15bf6d635 129 0x01, 0xFF, 0x00,
johnAlexander 6:8ac15bf6d635 130 0x01, 0x80, 0x01,
johnAlexander 6:8ac15bf6d635 131 0x01, 0x01, 0xF8,
johnAlexander 6:8ac15bf6d635 132
johnAlexander 6:8ac15bf6d635 133 0x01, 0xFF, 0x01,
johnAlexander 6:8ac15bf6d635 134 0x01, 0x8e, 0x01,
johnAlexander 6:8ac15bf6d635 135 0x01, 0x00, 0x01,
johnAlexander 6:8ac15bf6d635 136 0x01, 0xFF, 0x00,
johnAlexander 6:8ac15bf6d635 137 0x01, 0x80, 0x00,
johnAlexander 6:8ac15bf6d635 138
johnAlexander 6:8ac15bf6d635 139 0x00, 0x00, 0x00
johnAlexander 6:8ac15bf6d635 140 };
johnAlexander 6:8ac15bf6d635 141
johnAlexander 6:8ac15bf6d635 142 #ifdef __cplusplus
johnAlexander 6:8ac15bf6d635 143 }
johnAlexander 6:8ac15bf6d635 144 #endif
johnAlexander 6:8ac15bf6d635 145
johnAlexander 6:8ac15bf6d635 146 #endif /* _VL53L0X_TUNING_H_ */
johnAlexander 6:8ac15bf6d635 147