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