Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
vl53l1_types.h
Go to the documentation of this file.
1/*******************************************************************************
2Copyright (C) 2015, STMicroelectronics International N.V.
3All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are met:
7 * Redistributions of source code must retain the above copyright
8 notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright
10 notice, this list of conditions and the following disclaimer in the
11 documentation and/or other materials provided with the distribution.
12 * Neither the name of STMicroelectronics nor the
13 names of its contributors may be used to endorse or promote products
14 derived from this software without specific prior written permission.
15
16THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
19NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED.
20IN NO EVENT SHALL STMICROELECTRONICS INTERNATIONAL N.V. BE LIABLE FOR ANY
21DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27********************************************************************************/
33#ifndef _VL53L1_TYPES_H_
34#define _VL53L1_TYPES_H_
35
46#include <stdint.h>
47#include <stddef.h>
48#include <string.h>
49#include <stdio.h>
50#include <stdlib.h>
51
52#ifndef NULL
53#error "Error NULL definition should be done. Please add required include "
54#endif
55
56
57#if !defined(STDINT_H) && !defined(_STDINT_H) && !defined(_GCC_STDINT_H) && !defined(__STDINT_DECLS) && !defined(_GCC_WRAP_STDINT_H) && !defined(_STDINT)
58
59#pragma message("Please review type definition of STDINT define for your platform and add to list above ")
60
61/*
62 * target platform do not provide stdint or use a different #define than above
63 * to avoid seeing the message below addapt the #define list above or implement
64 * all type and delete these pragma
65 */
66
72typedef unsigned long long uint64_t;
73
74
78typedef unsigned int uint32_t;
79
83typedef int int32_t;
84
88typedef unsigned short uint16_t;
89
93typedef short int16_t;
94
98typedef unsigned char uint8_t;
99
103typedef signed char int8_t;
104
106#endif /* _STDINT_H */
107
108
113
114#endif /* VL53L1_TYPES_H_ */
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
int int32_t
Typedef defining 32 bit int type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
short int16_t
Typedef defining 16 bit short type.
unsigned long long uint64_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.
uint32_t FixPoint1616_t
use where fractional values are expected