Rename library

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   VL53L3CX_NoShield_1Sensor_poll_Mb06x VL53L3_NoShield_1Sensor_polling_Mb63 X_NUCLEO_53L3A2 53L3A2_Ranging

porting/vl53lx_platform_user_config.h

Committer:
charlesmn
Date:
2021-07-21
Revision:
7:7f1bbf370283
Parent:
5:89031b2f5316

File content as of revision 7:7f1bbf370283:


/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
/******************************************************************************
 * Copyright (c) 2020, STMicroelectronics - All Rights Reserved

 This file is part of VL53LX and is dual licensed,
 either GPL-2.0+
 or 'BSD 3-clause "New" or "Revised" License' , at your option.
 ******************************************************************************
 */





#ifndef _VL53LX_PLATFORM_USER_CONFIG_H_
#define _VL53LX_PLATFORM_USER_CONFIG_H_

#define    VL53LX_BYTES_PER_WORD              2
#define    VL53LX_BYTES_PER_DWORD             4


#define VL53LX_BOOT_COMPLETION_POLLING_TIMEOUT_MS     500
#define VL53LX_RANGE_COMPLETION_POLLING_TIMEOUT_MS   2000
#define VL53LX_TEST_COMPLETION_POLLING_TIMEOUT_MS   60000

#define VL53LX_POLLING_DELAY_MS                         1


#define VL53LX_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS  0x8000
#define VL53LX_TUNINGPARM_PRIVATE_PAGE_BASE_ADDRESS 0xC000

#define VL53LX_GAIN_FACTOR__STANDARD_DEFAULT       0x0800

#define VL53LX_GAIN_FACTOR__HISTOGRAM_DEFAULT      0x0800



#define VL53LX_OFFSET_CAL_MIN_EFFECTIVE_SPADS  0x0500


#define VL53LX_OFFSET_CAL_MAX_PRE_PEAK_RATE_MCPS   0x1900


#define VL53LX_OFFSET_CAL_MAX_SIGMA_MM             0x0040



#define VL53LX_ZONE_CAL_MAX_PRE_PEAK_RATE_MCPS     0x1900


#define VL53LX_ZONE_CAL_MAX_SIGMA_MM               0x0040



#define VL53LX_XTALK_EXTRACT_MAX_SIGMA_MM          0x008C


#define VL53LX_MAX_USER_ZONES                5

#define VL53LX_MAX_RANGE_RESULTS              4



#define VL53LX_MAX_STRING_LENGTH 512

#endif