#define SOFT_RESET
#define VL53L1_I2C_SLAVE__DEVICE_ADDRESS
#define VL53L1_VHV_CONFIG__TIMEOUT_MACROP_LOOP_BOUND
#define ALGO__CROSSTALK_COMPENSATION_PLANE_OFFSET_KCPS
#define ALGO__CROSSTALK_COMPENSATION_X_PLANE_GRADIENT_KCPS
#define ALGO__CROSSTALK_COMPENSATION_Y_PLANE_GRADIENT_KCPS
#define ALGO__PART_TO_PART_RANGE_OFFSET_MM
#define MM_CONFIG__INNER_OFFSET_MM
#define MM_CONFIG__OUTER_OFFSET_MM
#define GPIO_HV_MUX__CTRL
#define GPIO__TIO_HV_STATUS
#define SYSTEM__INTERRUPT_CONFIG_GPIO
#define PHASECAL_CONFIG__TIMEOUT_MACROP
#define RANGE_CONFIG__TIMEOUT_MACROP_A_HI
#define RANGE_CONFIG__VCSEL_PERIOD_A
#define RANGE_CONFIG__VCSEL_PERIOD_B
#define RANGE_CONFIG__TIMEOUT_MACROP_B_HI
#define RANGE_CONFIG__TIMEOUT_MACROP_B_LO
#define RANGE_CONFIG__SIGMA_THRESH
#define RANGE_CONFIG__MIN_COUNT_RATE_RTN_LIMIT_MCPS
#define RANGE_CONFIG__VALID_PHASE_HIGH
#define VL53L1_SYSTEM__INTERMEASUREMENT_PERIOD
#define SYSTEM__THRESH_HIGH
#define SYSTEM__THRESH_LOW
#define SD_CONFIG__WOI_SD0
#define SD_CONFIG__INITIAL_PHASE_SD0
#define ROI_CONFIG__USER_ROI_CENTRE_SPAD
#define ROI_CONFIG__USER_ROI_REQUESTED_GLOBAL_XY_SIZE
#define SYSTEM__SEQUENCE_CONFIG
#define VL53L1_SYSTEM__GROUPED_PARAMETER_HOLD
#define SYSTEM__INTERRUPT_CLEAR
#define SYSTEM__MODE_START
#define VL53L1_RESULT__RANGE_STATUS
#define VL53L1_RESULT__OSC_CALIBRATE_VAL
#define VL53L1_FIRMWARE__SYSTEM_STATUS
#define VL53L1_IDENTIFICATION__MODEL_ID
#define VL53L1_ROI_CONFIG__MODE_ROI_CENTRE_SPAD
|
0x0000 0x0001 0x0008 0x0016 0x0018 0x001A 0x001E 0x0020 0x0022 0x0030 0x0031 0x0046 0x004B 0x005E 0x0060 0x0063 0x0061 0x0062 0x0064 0x0066 0x0069 0x006C 0x0072 0x0074 0x0078 0x007A 0x007F 0x0080 0x0081 0x0082 0x0086 0x0087 0x0089 0x00DE 0x00E5 0x010F 0x013E |
|
#define VL53L1_RESULT__DSS_ACTUAL_EFFECTIVE_SPADS_SD0
#define RESULT__AMBIENT_COUNT_RATE_MCPS_SD
#define VL53L1_RESULT__FINAL_CROSSTALK_CORRECTED_RANGE_MM_SD0
#define VL53L1_RESULT__PEAK_SIGNAL_COUNT_RATE_CROSSTALK_CORRECTED_MCPS_SD0
|
0x008C 0x0090 0x0096 0x0098 |
SpadNum
AmbientRate
DistanceRaw
SignalRate
|
|
const uint8_t VL51L1X_DE FAULT_CONFIGURATION[] = {
0x00, /* 0x2d : set bit 2 and 5 to 1 for fast plus mode (1MHz I2C), else don't touch */
0x00, /* 0x2e : bit 0 if I2C pulled up at 1.8V, else set bit 0 to 1 (pull up at AVDD) */
0x00, /* 0x2f : bit 0 if GPIO pulled up at 1.8V, else set bit 0 to 1 (pull up at AVDD) */
0x01, /* 0x30 : set bit 4to0 for active high interrupt and 1 for active low (bits 3:0 must be 0x1), use SetInterruptPolarity()*/
0x02, /* 0x31 : bit 1 = interrupt depending on the polarity, use CheckForDataReady() */
0x00, /* 0x32 : don't touch */
0x02, /* 0x33 : don't touch */
0x08, /* 0x34 : don't touch */
0x00, /* 0x35 : don't touch */
0x08, /* 0x36 : don't touch */
0x10, /* 0x37 : don't touch */
0x01, /* 0x38 : don't touch */
0x01, /* 0x39 : don't touch */
0x00, /* 0x3a : don't touch */
0x00, /* 0x3b : don't touch */
0x00, /* 0x3c : don't touch */
0x00, /* 0x3d : don't touch */
0xff, /* 0x3e : don't touch */
0x00, /* 0x3f : don't touch */
0x0F, /* 0x40 : don't touch */
0x00, /* 0x41 : don't touch */
0x00, /* 0x42 : don't touch */
0x00, /* 0x43 : don't touch */
0x00, /* 0x44 : don't touch */
0x00, /* 0x45 : don't touch */
0x20, /* 0x46 : interrupt configuration 0>level low detection,1> level high, 2> Out of window, 3>In window, 0x20> New sample ready , TBC */
0x0b, /* 0x47 : don't touch */
0x00, /* 0x48 : don't touch */
0x00, /* 0x49 : don't touch */
0x02, /* 0x4a : don't touch */
0x0a, /* 0x4b : don't touch */
0x21, /* 0x4c : don't touch */
0x00, /* 0x4d : don't touch */
0x00, /* 0x4e : don't touch */
0x05, /* 0x4f : don't touch */
0x00, /* 0x50 : don't touch */
0x00, /* 0x51 : don't touch */
0x00, /* 0x52 : don't touch */
0x00, /* 0x53 : don't touch */
0xc8, /* 0x54 : don't touch */
0x00, /* 0x55 : don't touch */
0x00, /* 0x56 : don't touch */
0x38, /* 0x57 : don't touch */
0xff, /* 0x58 : don't touch */
0x01, /* 0x59 : don't touch */
0x00, /* 0x5a : don't touch */
0x08, /* 0x5b : don't touch */
0x00, /* 0x5c : don't touch */
0x00, /* 0x5d : don't touch */
0x01, /* 0x5e : don't touch */
0xdb, /* 0x5f : don't touch */
0x0f, /* 0x60 : don't touch */
0x01, /* 0x61 : don't touch */
0xf1, /* 0x62 : don't touch */
0x0d, /* 0x63 : don't touch */
0x01, /* 0x64 : Sigma threshold MSB(mm in 14.2 format for MSB+LSB),use SetSigmaThreshold(),default value 90 mm */
0x68, /* 0x65 : Sigma threshold LSB */
0x00, /* 0x66 : Min count Rate MSB (MCPS in 9.7 format for MSB+LSB), use SetSignalThreshold() */
0x80, /* 0x67 : Min count Rate LSB */
0x08, /* 0x68 : don't touch */
0xb8, /* 0x69 : don't touch */
0x00, /* 0x6a : don't touch */
0x00, /* 0x6b : don't touch */
0x00, /* 0x6c : Intermeasurement period MSB, 32 bits register, use SetIntermeasurementInMs() */
0x00, /* 0x6d : Intermeasurement period */
0x0f, /* 0x6e : Intermeasurement period */
0x89, /* 0x6f : Intermeasurement period LSB */
0x00, /* 0x70 : don't touch */
0x00, /* 0x71 : don't touch */
0x00, /* 0x72 : distance threshold high MSB (in mm, MSB+LSB), use SetD:tanceThreshold() */
0x00, /* 0x73 : distance threshold high LSB */
0x00, /* 0x74 : distance threshold low MSB ( in mm, MSB+LSB), use SetD:tanceThreshold() */
0x00, /* 0x75 : distance threshold low LSB */
0x00, /* 0x76 : don't touch */
0x01, /* 0x77 : don't touch */
0x0f, /* 0x78 : don't touch */
0x0d, /* 0x79 : don't touch */
0x0e, /* 0x7a : don't touch */
0x0e, /* 0x7b : don't touch */
0x00, /* 0x7c : don't touch */
0x00, /* 0x7d : don't touch */
0x02, /* 0x7e : don't touch */
0xc7, /* 0x7f : ROI center, use SetROI() */
0xff, /* 0x80 : XY ROI (X=Width, Y=Height), use SetROI() */
0x9B, /* 0x81 : don't touch */
0x00, /* 0x82 : don't touch */
0x00, /* 0x83 : don't touch */
0x00, /* 0x84 : don't touch */
0x01, /* 0x85 : don't touch */
0x00, /* 0x86 : clear interrupt, use ClearInterrupt() */
0x40 /* 0x87 : start ranging, use StartRanging() or StopRanging(), If you want an automatic start after VL53L1X_init() call, put 0x40 in location 0x87 */
'프로그램&회로' 카테고리의 다른 글
Copilot (0) | 2024.08.27 |
---|---|
EMS EMI EMC (0) | 2024.07.10 |
VL53L1 i2clog data (0) | 2024.05.16 |
arduino Serial 통신 (0) | 2024.05.03 |
ai관련 재미난 영상 (0) | 2024.04.24 |