IoT-MBBR (masterthesis)
Masterthesis upgrading a Moving Bed BioReactor with extra sensors and cloud connectivity.
vl53l1_platform.h
Go to the documentation of this file.
1 /**
2  * @file vl53l1_platform.h
3  * @brief Those platform functions are platform dependent and have to be implemented by the user
4  */
5 
6 #ifndef _VL53L1_PLATFORM_H_
7 #define _VL53L1_PLATFORM_H_
8 
9 #include "vl53l1_types.h"
10 
11 #ifdef __cplusplus
12 extern "C"
13 {
14 #endif
15 
16 typedef struct {
18 } VL53L1_Dev_t;
19 
21 
22 /** @brief VL53L1_WriteMulti() definition.\n
23  * To be implemented by the developer
24  */
26  uint16_t dev,
27  uint16_t index,
28  uint8_t *pdata,
29  uint32_t count);
30 /** @brief VL53L1_ReadMulti() definition.\n
31  * To be implemented by the developer
32  */
34  uint16_t dev,
35  uint16_t index,
36  uint8_t *pdata,
37  uint32_t count);
38 /** @brief VL53L1_WrByte() definition.\n
39  * To be implemented by the developer
40  */
42  uint16_t dev,
43  uint16_t index,
44  uint8_t data);
45 /** @brief VL53L1_WrWord() definition.\n
46  * To be implemented by the developer
47  */
49  uint16_t dev,
50  uint16_t index,
51  uint16_t data);
52 /** @brief VL53L1_WrDWord() definition.\n
53  * To be implemented by the developer
54  */
56  uint16_t dev,
57  uint16_t index,
58  uint32_t data);
59 /** @brief VL53L1_RdByte() definition.\n
60  * To be implemented by the developer
61  */
63  uint16_t dev,
64  uint16_t index,
65  uint8_t *pdata);
66 /** @brief VL53L1_RdWord() definition.\n
67  * To be implemented by the developer
68  */
70  uint16_t dev,
71  uint16_t index,
72  uint16_t *pdata);
73 /** @brief VL53L1_RdDWord() definition.\n
74  * To be implemented by the developer
75  */
77  uint16_t dev,
78  uint16_t index,
79  uint32_t *pdata);
80 /** @brief VL53L1_WaitMs() definition.\n
81  * To be implemented by the developer
82  */
84  uint16_t dev,
85  int32_t wait_ms);
86 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif
int8_t VL53L1_WaitMs(uint16_t dev, int32_t wait_ms)
VL53L1_WaitMs() definition. To be implemented by the developer.
int8_t VL53L1_RdByte(uint16_t dev, uint16_t index, uint8_t *pdata)
VL53L1_RdByte() definition. To be implemented by the developer.
int8_t VL53L1_RdDWord(uint16_t dev, uint16_t index, uint32_t *pdata)
VL53L1_RdDWord() definition. To be implemented by the developer.
signed char int8_t
Typedef defining 8 bit char type. The developer should modify this to suit the platform being deploye...
Definition: vl53l1_types.h:103
int8_t VL53L1_ReadMulti(uint16_t dev, uint16_t index, uint8_t *pdata, uint32_t count)
VL53L1_ReadMulti() definition. To be implemented by the developer.
int8_t VL53L1_WrWord(uint16_t dev, uint16_t index, uint16_t data)
VL53L1_WrWord() definition. To be implemented by the developer.
int8_t VL53L1_RdWord(uint16_t dev, uint16_t index, uint16_t *pdata)
VL53L1_RdWord() definition. To be implemented by the developer.
MeasurementData_t data
Definition: main.c:86
int8_t VL53L1_WrDWord(uint16_t dev, uint16_t index, uint32_t data)
VL53L1_WrDWord() definition. To be implemented by the developer.
int int32_t
Typedef defining 32 bit int type. The developer should modify this to suit the platform being deploye...
Definition: vl53l1_types.h:83
VL53L1 types definition.
VL53L1_Dev_t * VL53L1_DEV
int8_t VL53L1_WriteMulti(uint16_t dev, uint16_t index, uint8_t *pdata, uint32_t count)
VL53L1_WriteMulti() definition. To be implemented by the developer.
uint32_t dummy
int8_t VL53L1_WrByte(uint16_t dev, uint16_t index, uint8_t data)
VL53L1_WrByte() definition. To be implemented by the developer.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type. The developer should modify this to suit the platform be...
Definition: vl53l1_types.h:88
unsigned char uint8_t
Typedef defining 8 bit unsigned char type. The developer should modify this to suit the platform bein...
Definition: vl53l1_types.h:98
unsigned int uint32_t
Typedef defining 32 bit unsigned int type. The developer should modify this to suit the platform bein...
Definition: vl53l1_types.h:78