Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: VL53L1CB_noshield_1sensor_polls_auton VL53L1CB_noshield_1sensor_interrupt_auton X_NUCLEO_53L1A2
vl53l1_platform_user_data.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 #ifndef _VL53L1_PLATFORM_USER_DATA_H_ 00015 #define _VL53L1_PLATFORM_USER_DATA_H_ 00016 00017 #ifndef __KERNEL__ 00018 #include <stdlib.h> 00019 #endif 00020 00021 #include "vl53l1_def.h" 00022 00023 #ifdef __cplusplus 00024 extern "C" 00025 { 00026 #endif 00027 00028 00029 00030 00031 00032 typedef struct { 00033 00034 VL53L1_DevData_t Data; 00035 00036 uint8_t i2c_slave_address; 00037 00038 void *dev_i2c; 00039 00040 } VL53L1_Dev_t; 00041 00042 00043 00044 typedef VL53L1_Dev_t *VL53L1_DEV; 00045 00046 00047 #define VL53L1DevDataGet(Dev, field) (Dev->Data.field) 00048 00049 00050 00051 #define VL53L1DevDataSet(Dev, field, VL53L1_p_002) ((Dev->Data.field) = (VL53L1_p_002)) 00052 00053 00054 00055 #define VL53L1DevStructGetLLDriverHandle(Dev) (&Dev->Data.LLData) 00056 00057 00058 #define VL53L1DevStructGetLLResultsHandle(Dev) (&Dev->Data.llresults) 00059 00060 00061 00062 #ifdef __cplusplus 00063 } 00064 #endif 00065 00066 #endif 00067 00068
Generated on Thu Jul 14 2022 10:14:48 by
1.7.2