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