blob: ba2998ac7b0197da31f3b31e1f683a3b22714a28 [file] [log] [blame]
shaoxingc0dbf642018-03-20 19:43:05 +08001/*
2 * vl53l0x_tuning.h - Linux kernel modules for
3 * STM VL53L0 FlightSense TOF sensor
4 *
5 * Copyright (C) 2016 STMicroelectronics Imaging Division.
6 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 */
18
19#ifndef _VL_TUNING_H_
20#define _VL_TUNING_H_
21
22#include "vl53l0x_def.h"
23
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29
30uint8_t DefaultTuningSettings[] = {
31
32 /* update 02/11/2015_v36 */
33 0x01, 0xFF, 0x01,
34 0x01, 0x00, 0x00,
35
36 0x01, 0xFF, 0x00,
37 0x01, 0x09, 0x00,
38 0x01, 0x10, 0x00,
39 0x01, 0x11, 0x00,
40
41 0x01, 0x24, 0x01,
42 0x01, 0x25, 0xff,
43 0x01, 0x75, 0x00,
44
45 0x01, 0xFF, 0x01,
46 0x01, 0x4e, 0x2c,
47 0x01, 0x48, 0x00,
48 0x01, 0x30, 0x20,
49
50 0x01, 0xFF, 0x00,
51 0x01, 0x30, 0x09, /* mja changed from 0x64. */
52 0x01, 0x54, 0x00,
53 0x01, 0x31, 0x04,
54 0x01, 0x32, 0x03,
55 0x01, 0x40, 0x83,
56 0x01, 0x46, 0x25,
57 0x01, 0x60, 0x00,
58 0x01, 0x27, 0x00,
59 0x01, 0x50, 0x06,
60 0x01, 0x51, 0x00,
61 0x01, 0x52, 0x96,
62 0x01, 0x56, 0x08,
63 0x01, 0x57, 0x30,
64 0x01, 0x61, 0x00,
65 0x01, 0x62, 0x00,
66 0x01, 0x64, 0x00,
67 0x01, 0x65, 0x00,
68 0x01, 0x66, 0xa0,
69
70 0x01, 0xFF, 0x01,
71 0x01, 0x22, 0x32,
72 0x01, 0x47, 0x14,
73 0x01, 0x49, 0xff,
74 0x01, 0x4a, 0x00,
75
76 0x01, 0xFF, 0x00,
77 0x01, 0x7a, 0x0a,
78 0x01, 0x7b, 0x00,
79 0x01, 0x78, 0x21,
80
81 0x01, 0xFF, 0x01,
82 0x01, 0x23, 0x34,
83 0x01, 0x42, 0x00,
84 0x01, 0x44, 0xff,
85 0x01, 0x45, 0x26,
86 0x01, 0x46, 0x05,
87 0x01, 0x40, 0x40,
88 0x01, 0x0E, 0x06,
89 0x01, 0x20, 0x1a,
90 0x01, 0x43, 0x40,
91
92 0x01, 0xFF, 0x00,
93 0x01, 0x34, 0x03,
94 0x01, 0x35, 0x44,
95
96 0x01, 0xFF, 0x01,
97 0x01, 0x31, 0x04,
98 0x01, 0x4b, 0x09,
99 0x01, 0x4c, 0x05,
100 0x01, 0x4d, 0x04,
101
102
103 0x01, 0xFF, 0x00,
104 0x01, 0x44, 0x00,
105 0x01, 0x45, 0x20,
106 0x01, 0x47, 0x08,
107 0x01, 0x48, 0x28,
108 0x01, 0x67, 0x00,
109 0x01, 0x70, 0x04,
110 0x01, 0x71, 0x01,
111 0x01, 0x72, 0xfe,
112 0x01, 0x76, 0x00,
113 0x01, 0x77, 0x00,
114
115 0x01, 0xFF, 0x01,
116 0x01, 0x0d, 0x01,
117
118 0x01, 0xFF, 0x00,
119 0x01, 0x80, 0x01,
120 0x01, 0x01, 0xF8,
121
122 0x01, 0xFF, 0x01,
123 0x01, 0x8e, 0x01,
124 0x01, 0x00, 0x01,
125 0x01, 0xFF, 0x00,
126 0x01, 0x80, 0x00,
127
128 0x00, 0x00, 0x00
129};
130
131#ifdef __cplusplus
132}
133#endif
134
135#endif /* _VL_TUNING_H_ */