The VL53L1CB proximity sensor, based on ST’s FlightSense™, Time-of-Flight technology.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: VL53L1CB_noshield_1sensor_polls_auton VL53L1CB_noshield_1sensor_interrupt_auton X_NUCLEO_53L1A2
Based on VL53L1 library, this is a library for the VL53L1CB ToF chip.
inc/vl53l1x_configuration.h@0:3ac96e360672, 2020-11-06 (annotated)
- Committer:
- charlesmn
- Date:
- Fri Nov 06 10:06:37 2020 +0000
- Revision:
- 0:3ac96e360672
Library for ST Vl53L1A1 time of flight sensor.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
charlesmn | 0:3ac96e360672 | 1 | #ifndef __VL53L1X_CONFIGURATION_H |
charlesmn | 0:3ac96e360672 | 2 | #define __VL53L1X_CONFIGURATION_H |
charlesmn | 0:3ac96e360672 | 3 | |
charlesmn | 0:3ac96e360672 | 4 | |
charlesmn | 0:3ac96e360672 | 5 | const uint8_t VL51L1X_DEFAULT_CONFIGURATION[] = { |
charlesmn | 0:3ac96e360672 | 6 | 0x00, /* 0x2d : set bit 2 and 5 to 1 for fast plus mode (1MHz I2C), else don't touch */ |
charlesmn | 0:3ac96e360672 | 7 | 0x00, /* 0x2e : bit 0 if I2C pulled up at 1.8V, else set bit 0 to 1 (pull up at AVDD) */ |
charlesmn | 0:3ac96e360672 | 8 | 0x00, /* 0x2f : bit 0 if GPIO pulled up at 1.8V, else set bit 0 to 1 (pull up at AVDD) */ |
charlesmn | 0:3ac96e360672 | 9 | 0x01, /* 0x30 : set bit 4 to 0 for active high interrupt and 1 for active low (bits 3:0 must be 0x1), use SetInterruptPolarity() */ |
charlesmn | 0:3ac96e360672 | 10 | 0x02, /* 0x31 : bit 1 = interrupt depending on the polarity, use CheckForDataReady() */ |
charlesmn | 0:3ac96e360672 | 11 | 0x00, /* 0x32 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 12 | 0x02, /* 0x33 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 13 | 0x08, /* 0x34 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 14 | 0x00, /* 0x35 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 15 | 0x08, /* 0x36 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 16 | 0x10, /* 0x37 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 17 | 0x01, /* 0x38 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 18 | 0x01, /* 0x39 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 19 | 0x00, /* 0x3a : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 20 | 0x00, /* 0x3b : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 21 | 0x00, /* 0x3c : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 22 | 0x00, /* 0x3d : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 23 | 0xff, /* 0x3e : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 24 | 0x00, /* 0x3f : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 25 | 0x0F, /* 0x40 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 26 | 0x00, /* 0x41 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 27 | 0x00, /* 0x42 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 28 | 0x00, /* 0x43 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 29 | 0x00, /* 0x44 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 30 | 0x00, /* 0x45 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 31 | 0x20, /* 0x46 : interrupt configuration 0->level low detection, 1-> level high, 2-> Out of window, 3->In window, 0x20-> New sample ready , TBC */ |
charlesmn | 0:3ac96e360672 | 32 | 0x0b, /* 0x47 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 33 | 0x00, /* 0x48 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 34 | 0x00, /* 0x49 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 35 | 0x02, /* 0x4a : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 36 | 0x0a, /* 0x4b : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 37 | 0x21, /* 0x4c : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 38 | 0x00, /* 0x4d : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 39 | 0x00, /* 0x4e : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 40 | 0x05, /* 0x4f : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 41 | 0x00, /* 0x50 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 42 | 0x00, /* 0x51 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 43 | 0x00, /* 0x52 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 44 | 0x00, /* 0x53 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 45 | 0xc8, /* 0x54 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 46 | 0x00, /* 0x55 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 47 | 0x00, /* 0x56 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 48 | 0x38, /* 0x57 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 49 | 0xff, /* 0x58 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 50 | 0x01, /* 0x59 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 51 | 0x00, /* 0x5a : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 52 | 0x08, /* 0x5b : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 53 | 0x00, /* 0x5c : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 54 | 0x00, /* 0x5d : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 55 | 0x01, /* 0x5e : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 56 | 0xcc, /* 0x5f : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 57 | 0x0f, /* 0x60 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 58 | 0x01, /* 0x61 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 59 | 0xf1, /* 0x62 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 60 | 0x0d, /* 0x63 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 61 | 0x01, /* 0x64 : Sigma threshold MSB (mm in 14.2 format for MSB+LSB), use SetSigmaThreshold(), default value 90 mm */ |
charlesmn | 0:3ac96e360672 | 62 | 0x68, /* 0x65 : Sigma threshold LSB */ |
charlesmn | 0:3ac96e360672 | 63 | 0x00, /* 0x66 : Min count Rate MSB (MCPS in 9.7 format for MSB+LSB), use SetSignalThreshold() */ |
charlesmn | 0:3ac96e360672 | 64 | 0x80, /* 0x67 : Min count Rate LSB */ |
charlesmn | 0:3ac96e360672 | 65 | 0x08, /* 0x68 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 66 | 0xb8, /* 0x69 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 67 | 0x00, /* 0x6a : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 68 | 0x00, /* 0x6b : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 69 | 0x00, /* 0x6c : Intermeasurement period MSB, 32 bits register, use SetIntermeasurementInMs() */ |
charlesmn | 0:3ac96e360672 | 70 | 0x00, /* 0x6d : Intermeasurement period */ |
charlesmn | 0:3ac96e360672 | 71 | 0x0f, /* 0x6e : Intermeasurement period */ |
charlesmn | 0:3ac96e360672 | 72 | 0x89, /* 0x6f : Intermeasurement period LSB */ |
charlesmn | 0:3ac96e360672 | 73 | 0x00, /* 0x70 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 74 | 0x00, /* 0x71 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 75 | 0x00, /* 0x72 : distance threshold high MSB (in mm, MSB+LSB), use SetD:tanceThreshold() */ |
charlesmn | 0:3ac96e360672 | 76 | 0x00, /* 0x73 : distance threshold high LSB */ |
charlesmn | 0:3ac96e360672 | 77 | 0x00, /* 0x74 : distance threshold low MSB ( in mm, MSB+LSB), use SetD:tanceThreshold() */ |
charlesmn | 0:3ac96e360672 | 78 | 0x00, /* 0x75 : distance threshold low LSB */ |
charlesmn | 0:3ac96e360672 | 79 | 0x00, /* 0x76 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 80 | 0x01, /* 0x77 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 81 | 0x0f, /* 0x78 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 82 | 0x0d, /* 0x79 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 83 | 0x0e, /* 0x7a : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 84 | 0x0e, /* 0x7b : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 85 | 0x00, /* 0x7c : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 86 | 0x00, /* 0x7d : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 87 | 0x02, /* 0x7e : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 88 | 0xc7, /* 0x7f : ROI center, use SetROI() */ |
charlesmn | 0:3ac96e360672 | 89 | 0xff, /* 0x80 : XY ROI (X=Width, Y=Height), use SetROI() */ |
charlesmn | 0:3ac96e360672 | 90 | 0x9B, /* 0x81 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 91 | 0x00, /* 0x82 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 92 | 0x00, /* 0x83 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 93 | 0x00, /* 0x84 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 94 | 0x01, /* 0x85 : not user-modifiable */ |
charlesmn | 0:3ac96e360672 | 95 | 0x00, /* 0x86 : clear interrupt, use ClearInterrupt() */ |
charlesmn | 0:3ac96e360672 | 96 | 0x00 /* 0x87 : start ranging, use StartRanging() or StopRanging(), If you want an automatic start after VL53L1X_init() call, put 0x40 in location 0x87 */ |
charlesmn | 0:3ac96e360672 | 97 | }; |
charlesmn | 0:3ac96e360672 | 98 | |
charlesmn | 0:3ac96e360672 | 99 | #endif //__VL53L1X_CONFIGURATION_H |