ST Expansion SW Team / VL53L1

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_53L1CB

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vl53l1_wait.h Source File

vl53l1_wait.h

00001 
00002 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
00003 /******************************************************************************
00004  * Copyright (c) 2020, STMicroelectronics - All Rights Reserved
00005 
00006  This file is part of VL53L1 and is dual licensed,
00007  either GPL-2.0+
00008  or 'BSD 3-clause "New" or "Revised" License' , at your option.
00009  ******************************************************************************
00010  */
00011 
00012 
00013 
00014 
00015 #ifndef _VL53L1_WAIT_H_
00016 #define _VL53L1_WAIT_H_
00017 
00018 #include "vl53l1_platform.h"
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 
00025 
00026 
00027 VL53L1_Error VL53L1_wait_for_boot_completion(
00028     VL53L1_DEV      Dev);
00029 
00030 
00031 
00032 
00033 VL53L1_Error VL53L1_wait_for_firmware_ready(
00034     VL53L1_DEV      Dev);
00035 
00036 
00037 
00038 
00039 VL53L1_Error VL53L1_wait_for_range_completion(
00040     VL53L1_DEV   Dev);
00041 
00042 
00043 
00044 
00045 VL53L1_Error VL53L1_wait_for_test_completion(
00046     VL53L1_DEV   Dev);
00047 
00048 
00049 
00050 
00051 
00052 
00053 VL53L1_Error VL53L1_is_boot_complete(
00054     VL53L1_DEV      Dev,
00055     uint8_t        *pready);
00056 
00057 
00058 
00059 VL53L1_Error VL53L1_is_firmware_ready(
00060     VL53L1_DEV      Dev,
00061     uint8_t        *pready);
00062 
00063 
00064 
00065 
00066 VL53L1_Error VL53L1_is_new_data_ready(
00067     VL53L1_DEV      Dev,
00068     uint8_t        *pready);
00069 
00070 
00071 
00072 
00073 
00074 
00075 VL53L1_Error VL53L1_poll_for_boot_completion(
00076     VL53L1_DEV      Dev,
00077     uint32_t        timeout_ms);
00078 
00079 
00080 
00081 
00082 VL53L1_Error VL53L1_poll_for_firmware_ready(
00083     VL53L1_DEV      Dev,
00084     uint32_t        timeout_ms);
00085 
00086 
00087 
00088 
00089 VL53L1_Error VL53L1_poll_for_range_completion(
00090     VL53L1_DEV   Dev,
00091     uint32_t     timeout_ms);
00092 
00093 
00094 
00095 #ifdef __cplusplus
00096 }
00097 #endif
00098 
00099 #endif
00100