-
Notifications
You must be signed in to change notification settings - Fork 0
/
vL53L0X.h
48 lines (34 loc) · 807 Bytes
/
vL53L0X.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* File: VL53L0X.c
* Author: Jamie
*
* Created on 01 December 2018, 19:58
*/
#ifndef VL53L0X_H
#define VL53L0X_H
#include "globals.h"
/*
* Send data to VL5310X using I2C
*/
void vl53l0x_I2C_SendData(uint8_t slave_address, uint8_t device_register, uint8_t value);
/*
* Receive data from VL5310X using I2C
*/
uint8_t vl53l0x_I2C_ReceiveData(uint8_t slave_address, uint8_t device_register);
/*
* Setup VL5310X to desired settings using I2C
*/
void vl5310x_Setup(uint8_t slave_address);
/*
* Setup VL5310X with initial values
*/
void vl5310x_Initialisation(uint8_t slave_address);
/*
* Setup VL5310X to recommended tuning values
*/
void vl5310x_Tuning(uint8_t slave_address);
/*
* Read range from VL5310X
*/
uint16_t vl5310x_ReadRange(uint8_t slave_address);
#endif //VL53L0X