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_dmax_structs.h Source File

vl53l1_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 VL53L1 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 _VL53L1_DMAX_STRUCTS_H_
00019 #define _VL53L1_DMAX_STRUCTS_H_
00020 
00021 #include "vl53l1_types.h"
00022 
00023 #ifdef __cplusplus
00024 extern "C"
00025 {
00026 #endif
00027 
00028 
00029 #define VL53L1_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 } VL53L1_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             VL53L1_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 } VL53L1_hist_gen3_dmax_config_t;
00085 
00086 
00087 #ifdef __cplusplus
00088 }
00089 #endif
00090 
00091 #endif
00092