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.

Committer:
lugandc
Date:
Wed Jul 21 17:06:38 2021 +0200
Revision:
18:0696efe39d08
Parent:
0:3ac96e360672
Cleanup i2c functions, removed all bad references to L1X
Cleanup VL53L1CB class:
- i2c device object is passed in a consistent way in MyDevice structure
- removed useless functions
Updated VL53L1CB component driver with bare driver release 6.6.7 content

Who changed what in which revision?

UserRevisionLine numberNew contents of line
charlesmn 0:3ac96e360672 1
lugandc 18:0696efe39d08 2 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
lugandc 18:0696efe39d08 3 /******************************************************************************
lugandc 18:0696efe39d08 4 * Copyright (c) 2020, STMicroelectronics - All Rights Reserved
charlesmn 0:3ac96e360672 5
lugandc 18:0696efe39d08 6 This file is part of VL53L1 and is dual licensed,
lugandc 18:0696efe39d08 7 either GPL-2.0+
lugandc 18:0696efe39d08 8 or 'BSD 3-clause "New" or "Revised" License' , at your option.
lugandc 18:0696efe39d08 9 ******************************************************************************
lugandc 18:0696efe39d08 10 */
charlesmn 0:3ac96e360672 11
charlesmn 0:3ac96e360672 12
charlesmn 0:3ac96e360672 13
charlesmn 0:3ac96e360672 14 #ifndef _VL53L1_PLATFORM_USER_DEFINES_H_
charlesmn 0:3ac96e360672 15 #define _VL53L1_PLATFORM_USER_DEFINES_H_
charlesmn 0:3ac96e360672 16
charlesmn 0:3ac96e360672 17 #ifdef __cplusplus
charlesmn 0:3ac96e360672 18 extern "C"
charlesmn 0:3ac96e360672 19 {
charlesmn 0:3ac96e360672 20 #endif
charlesmn 0:3ac96e360672 21
charlesmn 0:3ac96e360672 22
charlesmn 0:3ac96e360672 23
charlesmn 0:3ac96e360672 24
charlesmn 0:3ac96e360672 25
charlesmn 0:3ac96e360672 26 #define do_division_u(dividend, divisor) (dividend / divisor)
charlesmn 0:3ac96e360672 27
charlesmn 0:3ac96e360672 28
charlesmn 0:3ac96e360672 29
charlesmn 0:3ac96e360672 30 #define do_division_s(dividend, divisor) (dividend / divisor)
charlesmn 0:3ac96e360672 31
charlesmn 0:3ac96e360672 32
charlesmn 0:3ac96e360672 33
charlesmn 0:3ac96e360672 34 #define WARN_OVERRIDE_STATUS(__X__)\
charlesmn 0:3ac96e360672 35 trace_print (VL53L1_TRACE_LEVEL_WARNING, #__X__);
charlesmn 0:3ac96e360672 36
charlesmn 0:3ac96e360672 37
charlesmn 0:3ac96e360672 38 #ifdef _MSC_VER
charlesmn 0:3ac96e360672 39 #define DISABLE_WARNINGS() { \
charlesmn 0:3ac96e360672 40 __pragma (warning (push)); \
charlesmn 0:3ac96e360672 41 __pragma (warning (disable:4127)); \
charlesmn 0:3ac96e360672 42 }
charlesmn 0:3ac96e360672 43 #define ENABLE_WARNINGS() { \
charlesmn 0:3ac96e360672 44 __pragma (warning (pop)); \
charlesmn 0:3ac96e360672 45 }
charlesmn 0:3ac96e360672 46 #else
charlesmn 0:3ac96e360672 47 #define DISABLE_WARNINGS()
charlesmn 0:3ac96e360672 48 #define ENABLE_WARNINGS()
charlesmn 0:3ac96e360672 49 #endif
charlesmn 0:3ac96e360672 50
charlesmn 0:3ac96e360672 51
charlesmn 0:3ac96e360672 52 #ifdef __cplusplus
charlesmn 0:3ac96e360672 53 }
charlesmn 0:3ac96e360672 54 #endif
charlesmn 0:3ac96e360672 55
charlesmn 0:3ac96e360672 56 #endif
charlesmn 0:3ac96e360672 57
charlesmn 0:3ac96e360672 58