ST Expansion SW Team / VL53L1

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_53L1CB

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vl53l1_configuration.h Source File

vl53l1_configuration.h

00001 #ifndef __VL53L1X_CONFIGURATION_H
00002 #define __VL53L1X_CONFIGURATION_H
00003 
00004 
00005 const uint8_t VL51L1X_DEFAULT_CONFIGURATION[] = {
00006 0x00, /* 0x2d : set bit 2 and 5 to 1 for fast plus mode (1MHz I2C), else don't touch */
00007 0x00, /* 0x2e : bit 0 if I2C pulled up at 1.8V, else set bit 0 to 1 (pull up at AVDD) */
00008 0x00, /* 0x2f : bit 0 if GPIO pulled up at 1.8V, else set bit 0 to 1 (pull up at AVDD) */
00009 0x01, /* 0x30 : set bit 4 to 0 for active high interrupt and 1 for active low (bits 3:0 must be 0x1), use SetInterruptPolarity() */
00010 0x02, /* 0x31 : bit 1 = interrupt depending on the polarity, use CheckForDataReady() */
00011 0x00, /* 0x32 : not user-modifiable */
00012 0x02, /* 0x33 : not user-modifiable */
00013 0x08, /* 0x34 : not user-modifiable */
00014 0x00, /* 0x35 : not user-modifiable */
00015 0x08, /* 0x36 : not user-modifiable */
00016 0x10, /* 0x37 : not user-modifiable */
00017 0x01, /* 0x38 : not user-modifiable */
00018 0x01, /* 0x39 : not user-modifiable */
00019 0x00, /* 0x3a : not user-modifiable */
00020 0x00, /* 0x3b : not user-modifiable */
00021 0x00, /* 0x3c : not user-modifiable */
00022 0x00, /* 0x3d : not user-modifiable */
00023 0xff, /* 0x3e : not user-modifiable */
00024 0x00, /* 0x3f : not user-modifiable */
00025 0x0F, /* 0x40 : not user-modifiable */
00026 0x00, /* 0x41 : not user-modifiable */
00027 0x00, /* 0x42 : not user-modifiable */
00028 0x00, /* 0x43 : not user-modifiable */
00029 0x00, /* 0x44 : not user-modifiable */
00030 0x00, /* 0x45 : not user-modifiable */
00031 0x20, /* 0x46 : interrupt configuration 0->level low detection, 1-> level high, 2-> Out of window, 3->In window, 0x20-> New sample ready , TBC */
00032 0x0b, /* 0x47 : not user-modifiable */
00033 0x00, /* 0x48 : not user-modifiable */
00034 0x00, /* 0x49 : not user-modifiable */
00035 0x02, /* 0x4a : not user-modifiable */
00036 0x0a, /* 0x4b : not user-modifiable */
00037 0x21, /* 0x4c : not user-modifiable */
00038 0x00, /* 0x4d : not user-modifiable */
00039 0x00, /* 0x4e : not user-modifiable */
00040 0x05, /* 0x4f : not user-modifiable */
00041 0x00, /* 0x50 : not user-modifiable */
00042 0x00, /* 0x51 : not user-modifiable */
00043 0x00, /* 0x52 : not user-modifiable */
00044 0x00, /* 0x53 : not user-modifiable */
00045 0xc8, /* 0x54 : not user-modifiable */
00046 0x00, /* 0x55 : not user-modifiable */
00047 0x00, /* 0x56 : not user-modifiable */
00048 0x38, /* 0x57 : not user-modifiable */
00049 0xff, /* 0x58 : not user-modifiable */
00050 0x01, /* 0x59 : not user-modifiable */
00051 0x00, /* 0x5a : not user-modifiable */
00052 0x08, /* 0x5b : not user-modifiable */
00053 0x00, /* 0x5c : not user-modifiable */
00054 0x00, /* 0x5d : not user-modifiable */
00055 0x01, /* 0x5e : not user-modifiable */
00056 0xcc, /* 0x5f : not user-modifiable */
00057 0x0f, /* 0x60 : not user-modifiable */
00058 0x01, /* 0x61 : not user-modifiable */
00059 0xf1, /* 0x62 : not user-modifiable */
00060 0x0d, /* 0x63 : not user-modifiable */
00061 0x01, /* 0x64 : Sigma threshold MSB (mm in 14.2 format for MSB+LSB), use SetSigmaThreshold(), default value 90 mm  */
00062 0x68, /* 0x65 : Sigma threshold LSB */
00063 0x00, /* 0x66 : Min count Rate MSB (MCPS in 9.7 format for MSB+LSB), use SetSignalThreshold() */
00064 0x80, /* 0x67 : Min count Rate LSB */
00065 0x08, /* 0x68 : not user-modifiable */
00066 0xb8, /* 0x69 : not user-modifiable */
00067 0x00, /* 0x6a : not user-modifiable */
00068 0x00, /* 0x6b : not user-modifiable */
00069 0x00, /* 0x6c : Intermeasurement period MSB, 32 bits register, use SetIntermeasurementInMs() */
00070 0x00, /* 0x6d : Intermeasurement period */
00071 0x0f, /* 0x6e : Intermeasurement period */
00072 0x89, /* 0x6f : Intermeasurement period LSB */
00073 0x00, /* 0x70 : not user-modifiable */
00074 0x00, /* 0x71 : not user-modifiable */
00075 0x00, /* 0x72 : distance threshold high MSB (in mm, MSB+LSB), use SetD:tanceThreshold() */
00076 0x00, /* 0x73 : distance threshold high LSB */
00077 0x00, /* 0x74 : distance threshold low MSB ( in mm, MSB+LSB), use SetD:tanceThreshold() */
00078 0x00, /* 0x75 : distance threshold low LSB */
00079 0x00, /* 0x76 : not user-modifiable */
00080 0x01, /* 0x77 : not user-modifiable */
00081 0x0f, /* 0x78 : not user-modifiable */
00082 0x0d, /* 0x79 : not user-modifiable */
00083 0x0e, /* 0x7a : not user-modifiable */
00084 0x0e, /* 0x7b : not user-modifiable */
00085 0x00, /* 0x7c : not user-modifiable */
00086 0x00, /* 0x7d : not user-modifiable */
00087 0x02, /* 0x7e : not user-modifiable */
00088 0xc7, /* 0x7f : ROI center, use SetROI() */
00089 0xff, /* 0x80 : XY ROI (X=Width, Y=Height), use SetROI() */
00090 0x9B, /* 0x81 : not user-modifiable */
00091 0x00, /* 0x82 : not user-modifiable */
00092 0x00, /* 0x83 : not user-modifiable */
00093 0x00, /* 0x84 : not user-modifiable */
00094 0x01, /* 0x85 : not user-modifiable */
00095 0x00, /* 0x86 : clear interrupt, use ClearInterrupt() */
00096 0x00  /* 0x87 : start ranging, use StartRanging() or StopRanging(), If you want an automatic start after VL53L1X_init() call, put 0x40 in location 0x87 */
00097 };
00098 
00099 #endif //__VL53L1X_CONFIGURATION_H