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_data.h@7:7f1bbf370283, 2021-07-21 (annotated)
- Committer:
- charlesmn
- Date:
- Wed Jul 21 14:07:59 2021 +0000
- Revision:
- 7:7f1bbf370283
- Parent:
- 5:89031b2f5316
Moved vl53l3cx_class.cpp and .h to 53l3a2_RangingClass
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Charles MacNeill |
5:89031b2f5316 | 1 | |
Charles MacNeill |
5:89031b2f5316 | 2 | /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ |
Charles MacNeill |
5:89031b2f5316 | 3 | /****************************************************************************** |
Charles MacNeill |
5:89031b2f5316 | 4 | * Copyright (c) 2020, STMicroelectronics - All Rights Reserved |
Charles MacNeill |
5:89031b2f5316 | 5 | |
Charles MacNeill |
5:89031b2f5316 | 6 | This file is part of VL53LX and is dual licensed, |
Charles MacNeill |
5:89031b2f5316 | 7 | either GPL-2.0+ |
Charles MacNeill |
5:89031b2f5316 | 8 | or 'BSD 3-clause "New" or "Revised" License' , at your option. |
Charles MacNeill |
5:89031b2f5316 | 9 | ****************************************************************************** |
Charles MacNeill |
5:89031b2f5316 | 10 | */ |
Charles MacNeill |
5:89031b2f5316 | 11 | |
Charles MacNeill |
5:89031b2f5316 | 12 | |
Charles MacNeill |
5:89031b2f5316 | 13 | |
Charles MacNeill |
5:89031b2f5316 | 14 | #ifndef _VL53LX_PLATFORM_USER_DATA_H_ |
Charles MacNeill |
5:89031b2f5316 | 15 | #define _VL53LX_PLATFORM_USER_DATA_H_ |
Charles MacNeill |
5:89031b2f5316 | 16 | |
Charles MacNeill |
5:89031b2f5316 | 17 | #ifndef __KERNEL__ |
Charles MacNeill |
5:89031b2f5316 | 18 | #include <stdlib.h> |
Charles MacNeill |
5:89031b2f5316 | 19 | #endif |
Charles MacNeill |
5:89031b2f5316 | 20 | |
Charles MacNeill |
5:89031b2f5316 | 21 | #include "vl53lx_def.h" |
Charles MacNeill |
5:89031b2f5316 | 22 | #include "vl53l3cx.h" |
Charles MacNeill |
5:89031b2f5316 | 23 | |
Charles MacNeill |
5:89031b2f5316 | 24 | #ifdef __cplusplus |
Charles MacNeill |
5:89031b2f5316 | 25 | extern "C" |
Charles MacNeill |
5:89031b2f5316 | 26 | { |
Charles MacNeill |
5:89031b2f5316 | 27 | #endif |
Charles MacNeill |
5:89031b2f5316 | 28 | |
Charles MacNeill |
5:89031b2f5316 | 29 | typedef VL53L3CX_Object_t* VL53LX_DEV; |
Charles MacNeill |
5:89031b2f5316 | 30 | |
Charles MacNeill |
5:89031b2f5316 | 31 | #define VL53LXDevDataGet(Obj, field) (Obj->Dev.Data.field) |
Charles MacNeill |
5:89031b2f5316 | 32 | #define VL53LXDevDataSet(Obj, field, data) ((Obj->Dev.Data.field) = (data)) |
Charles MacNeill |
5:89031b2f5316 | 33 | #define PALDevDataGet(Obj, field) (Obj->Dev.Data.field) |
Charles MacNeill |
5:89031b2f5316 | 34 | #define PALDevDataSet(Obj, field, value) (Obj->Dev.Data.field)=(value) |
Charles MacNeill |
5:89031b2f5316 | 35 | #define VL53LXDevStructGetLLDriverHandle(Obj) (&Obj->Dev.Data.LLData) |
Charles MacNeill |
5:89031b2f5316 | 36 | #define VL53LXDevStructGetLLResultsHandle(Obj) (&Obj->Dev.Data.llresults) |
Charles MacNeill |
5:89031b2f5316 | 37 | |
Charles MacNeill |
5:89031b2f5316 | 38 | #ifdef __cplusplus |
Charles MacNeill |
5:89031b2f5316 | 39 | } |
Charles MacNeill |
5:89031b2f5316 | 40 | #endif |
Charles MacNeill |
5:89031b2f5316 | 41 | |
Charles MacNeill |
5:89031b2f5316 | 42 | #endif |
Charles MacNeill |
5:89031b2f5316 | 43 | |
Charles MacNeill |
5:89031b2f5316 | 44 |