ST Expansion SW Team / VL53L3CX_mbed

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   VL53L3CX_NoShield_1Sensor_poll_Mb06x VL53L3_NoShield_1Sensor_polling_Mb63 X_NUCLEO_53L3A2 53L3A2_Ranging

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vl53lx_dmax_structs.h Source File

vl53lx_dmax_structs.h

00001 
00002 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
00003 /******************************************************************************
00004  * Copyright (c) 2020, STMicroelectronics - All Rights Reserved
00005 
00006  This file is part of VL53LX and is dual licensed,
00007  either GPL-2.0+
00008  or 'BSD 3-clause "New" or "Revised" License' , at your option.
00009  ******************************************************************************
00010  */
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 #ifndef _VL53LX_DMAX_STRUCTS_H_
00019 #define _VL53LX_DMAX_STRUCTS_H_
00020 
00021 #include "vl53lx_types.h"
00022 
00023 #ifdef __cplusplus
00024 extern "C"
00025 {
00026 #endif
00027 
00028 
00029 #define VL53LX_MAX_AMBIENT_DMAX_VALUES        5
00030 
00031 
00032 
00033 
00034 
00035 typedef struct {
00036 
00037 
00038 
00039     uint16_t  ref__actual_effective_spads;
00040 
00041     uint16_t  ref__peak_signal_count_rate_mcps;
00042 
00043     uint16_t  ref__distance_mm;
00044 
00045     uint16_t   ref_reflectance_pc;
00046 
00047 
00048 
00049 
00050     uint16_t   coverglass_transmission;
00051 
00052 
00053 } VL53LX_dmax_calibration_data_t;
00054 
00055 
00056 
00057 
00058 typedef struct {
00059 
00060 
00061 
00062     uint8_t   signal_thresh_sigma;
00063 
00064     uint8_t   ambient_thresh_sigma;
00065 
00066     int32_t   min_ambient_thresh_events;
00067 
00068     int32_t   signal_total_events_limit;
00069 
00070 
00071     uint16_t  target_reflectance_for_dmax_calc[
00072             VL53LX_MAX_AMBIENT_DMAX_VALUES];
00073 
00074     uint16_t  max_effective_spads;
00075 
00076 
00077 
00078 
00079     uint16_t  dss_config__target_total_rate_mcps;
00080 
00081     uint8_t   dss_config__aperture_attenuation;
00082 
00083 
00084 } VL53LX_hist_gen3_dmax_config_t;
00085 
00086 
00087 #ifdef __cplusplus
00088 }
00089 #endif
00090 
00091 #endif
00092