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