vl53l1_wait.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2017, STMicroelectronics - All Rights Reserved
3 *
4 * This file is part of VL53L1 Core and is dual licensed,
5 * either 'STMicroelectronics
6 * Proprietary license'
7 * or 'BSD 3-clause "New" or "Revised" License' , at your option.
8 *
9 ********************************************************************************
10 *
11 * 'STMicroelectronics Proprietary license'
12 *
13 ********************************************************************************
14 *
15 * License terms: STMicroelectronics Proprietary in accordance with licensing
16 * terms at www.st.com/sla0081
17 *
18 * STMicroelectronics confidential
19 * Reproduction and Communication of this document is strictly prohibited unless
20 * specifically authorized in writing by STMicroelectronics.
21 *
22 *
23 ********************************************************************************
24 *
25 * Alternatively, VL53L1 Core may be distributed under the terms of
26 * 'BSD 3-clause "New" or "Revised" License', in which case the following
27 * provisions apply instead of the ones mentioned above :
28 *
29 ********************************************************************************
30 *
31 * License terms: BSD 3-clause "New" or "Revised" License.
32 *
33 * Redistribution and use in source and binary forms, with or without
34 * modification, are permitted provided that the following conditions are met:
35 *
36 * 1. Redistributions of source code must retain the above copyright notice, this
37 * list of conditions and the following disclaimer.
38 *
39 * 2. Redistributions in binary form must reproduce the above copyright notice,
40 * this list of conditions and the following disclaimer in the documentation
41 * and/or other materials provided with the distribution.
42 *
43 * 3. Neither the name of the copyright holder nor the names of its contributors
44 * may be used to endorse or promote products derived from this software
45 * without specific prior written permission.
46 *
47 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
48 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
49 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
50 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
51 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
52 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
53 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
54 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
55 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
56 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
57 *
58 *
59 ********************************************************************************
60 *
61 */
62 
69 #ifndef _VL53L1_WAIT_H_
70 #define _VL53L1_WAIT_H_
71 
72 #include "vl53l1_platform.h"
73 
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77 
78 
91  VL53L1_DEV Dev);
92 
93 
109  VL53L1_DEV Dev);
110 
111 
124  VL53L1_DEV Dev);
125 
126 
139  VL53L1_DEV Dev);
140 
141 
142 
143 
158  VL53L1_DEV Dev,
159  uint8_t *pready);
160 
175  VL53L1_DEV Dev,
176  uint8_t *pready);
177 
178 
200  VL53L1_DEV Dev,
201  uint8_t *pready);
202 
203 
204 
205 
226  VL53L1_DEV Dev,
227  uint32_t timeout_ms);
228 
229 
243  VL53L1_DEV Dev,
244  uint32_t timeout_ms);
245 
246 
267  VL53L1_DEV Dev,
268  uint32_t timeout_ms);
269 
270 
271 
272 #ifdef __cplusplus
273 }
274 #endif
275 
276 #endif /* _VL53L1_WAIT_H_ */
uint32_t
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:113
uint8_t
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:133
VL53L1_wait_for_range_completion
VL53L1_Error VL53L1_wait_for_range_completion(VL53L1_DEV Dev)
Waits for the next ranging interrupt.
Definition: vl53l1_wait.c:201
VL53L1_poll_for_boot_completion
VL53L1_Error VL53L1_poll_for_boot_completion(VL53L1_DEV Dev, uint32_t timeout_ms)
Waits (polls) for initial firmware boot to finish.
Definition: vl53l1_wait.c:416
VL53L1_wait_for_firmware_ready
VL53L1_Error VL53L1_wait_for_firmware_ready(VL53L1_DEV Dev)
Waits for initial firmware ready.
Definition: vl53l1_wait.c:136
VL53L1_Dev_t
Definition: vl53l1_platform_user_data.h:78
VL53L1_poll_for_firmware_ready
VL53L1_Error VL53L1_poll_for_firmware_ready(VL53L1_DEV Dev, uint32_t timeout_ms)
Waits (polls) for initial firmware ready.
Definition: vl53l1_wait.c:458
VL53L1_wait_for_boot_completion
VL53L1_Error VL53L1_wait_for_boot_completion(VL53L1_DEV Dev)
Wait for initial firmware boot to finish.
Definition: vl53l1_wait.c:88
VL53L1_is_firmware_ready
VL53L1_Error VL53L1_is_firmware_ready(VL53L1_DEV Dev, uint8_t *pready)
Reads FIRMWARE__SYSTEM_STATUS register to detect if the firmware is ready for ranging.
Definition: vl53l1_wait.c:341
VL53L1_wait_for_test_completion
VL53L1_Error VL53L1_wait_for_test_completion(VL53L1_DEV Dev)
Waits for a device test mode to complete.
Definition: vl53l1_wait.c:248
VL53L1_is_boot_complete
VL53L1_Error VL53L1_is_boot_complete(VL53L1_DEV Dev, uint8_t *pready)
Reads FIRMWARE__SYSTEM_STATUS register to detect if the firmware was finished booting.
Definition: vl53l1_wait.c:297
VL53L1_poll_for_range_completion
VL53L1_Error VL53L1_poll_for_range_completion(VL53L1_DEV Dev, uint32_t timeout_ms)
Polls bit 0 of VL53L1_GPIO__TIO_HV_STATUS register to determine the state of the GPIO (Interrupt) pin...
Definition: vl53l1_wait.c:516
vl53l1_platform.h
VL53L1_Error
int8_t VL53L1_Error
Definition: vl53l1_error_codes.h:89
VL53L1_is_new_data_ready
VL53L1_Error VL53L1_is_new_data_ready(VL53L1_DEV Dev, uint8_t *pready)
Reads bit 0 of VL53L1_GPIO__TIO_HV_STATUS register to determine if new range data is ready (available...
Definition: vl53l1_wait.c:366


vl53l1x
Author(s):
autogenerated on Fri Aug 2 2024 08:35:54