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: VL53L3CX_NoShield_1Sensor_poll_Mb06x VL53L3_NoShield_1Sensor_polling_Mb63 X_NUCLEO_53L3A2 53L3A2_Ranging
vl53lx_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 VL53LX 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 _VL53LX_PLATFORM_USER_DATA_H_ 00015 #define _VL53LX_PLATFORM_USER_DATA_H_ 00016 00017 #ifndef __KERNEL__ 00018 #include <stdlib.h> 00019 #endif 00020 00021 #include "vl53lx_def.h" 00022 #include "vl53l3cx.h" 00023 00024 #ifdef __cplusplus 00025 extern "C" 00026 { 00027 #endif 00028 00029 typedef VL53L3CX_Object_t* VL53LX_DEV; 00030 00031 #define VL53LXDevDataGet(Obj, field) (Obj->Dev.Data.field) 00032 #define VL53LXDevDataSet(Obj, field, data) ((Obj->Dev.Data.field) = (data)) 00033 #define PALDevDataGet(Obj, field) (Obj->Dev.Data.field) 00034 #define PALDevDataSet(Obj, field, value) (Obj->Dev.Data.field)=(value) 00035 #define VL53LXDevStructGetLLDriverHandle(Obj) (&Obj->Dev.Data.LLData) 00036 #define VL53LXDevStructGetLLResultsHandle(Obj) (&Obj->Dev.Data.llresults) 00037 00038 #ifdef __cplusplus 00039 } 00040 #endif 00041 00042 #endif 00043 00044
Generated on Mon Jul 18 2022 15:35:58 by
1.7.2