1 /* vl53l1_types.h - Zephyr customization of ST vl53l1x library, basic type definition. */ 2 3 /* 4 * Copyright (c) 2017 STMicroelectronics 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #ifndef ZEPHYR_DRIVERS_SENSOR_VL53L1X_VL53L1_TYPES_H_ 10 #define ZEPHYR_DRIVERS_SENSOR_VL53L1X_VL53L1_TYPES_H_ 11 12 13 /* Zephyr provides stdint.h and stddef.h, so this is enough to include it. 14 * If it was not the case, we would defined here all signed and unsigned 15 * basic types... 16 */ 17 #include <stdint.h> 18 #include <stddef.h> 19 20 #ifndef NULL 21 #error "Error NULL definition should be done. Please add required include " 22 #endif 23 24 /** use where fractional values are expected 25 * 26 * Given a floating point value f it's .16 bit point is (int)(f*(1<<16)) 27 */ 28 typedef uint32_t FixPoint1616_t; 29 30 #endif /* ZEPHYR_DRIVERS_SENSOR_VL53L1X_VL53L1_TYPES_H_ */ 31