Initial release. Mbed library for VL53L1CB
Embed:
(wiki syntax)
Show/hide line numbers
vl53l1_platform_init.h
00001 00002 /******************************************************************************* 00003 This file is part of VL53L1 Platform 00004 00005 Copyright (c) 2020, STMicroelectronics - All Rights Reserved 00006 00007 License terms: BSD 3-clause "New" or "Revised" License. 00008 00009 Redistribution and use in source and binary forms, with or without 00010 modification, are permitted provided that the following conditions are met: 00011 00012 1. Redistributions of source code must retain the above copyright notice, this 00013 list of conditions and the following disclaimer. 00014 00015 2. Redistributions in binary form must reproduce the above copyright notice, 00016 this list of conditions and the following disclaimer in the documentation 00017 and/or other materials provided with the distribution. 00018 00019 3. Neither the name of the copyright holder nor the names of its contributors 00020 may be used to endorse or promote products derived from this software 00021 without specific prior written permission. 00022 00023 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00024 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00025 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00026 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00027 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00028 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00029 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00030 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00031 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00032 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00033 00034 */ 00035 00036 00037 00038 #ifndef _VL53L1_PLATFORM_INIT_H_ 00039 #define _VL53L1_PLATFORM_INIT_H_ 00040 00041 #include "vl53l1_platform.h" 00042 00043 #ifdef __cplusplus 00044 extern "C" 00045 { 00046 #endif 00047 00048 00049 00050 00051 00052 00053 VL53L1_Error VL53L1_platform_init( 00054 VL53L1_Dev_t *pdev, 00055 uint8_t i2c_slave_address, 00056 uint8_t comms_type, 00057 uint16_t comms_speed_khz); 00058 00059 00060 00061 00062 VL53L1_Error VL53L1_platform_terminate( 00063 VL53L1_Dev_t *pdev); 00064 00065 00066 #ifdef __cplusplus 00067 } 00068 #endif 00069 00070 #endif 00071 00072 00073
Generated on Tue Jul 12 2022 20:07:15 by 1.7.2