Contains Ayoub's Ranging and Custom interfaces for the VL53L3CX
53l3a2.h@1:dae4cb24beec, 2021-07-21 (annotated)
- Committer:
- charlesmn
- Date:
- Wed Jul 21 14:47:53 2021 +0000
- Revision:
- 1:dae4cb24beec
- Parent:
- 0:c1910e04fc6c
strip out commented out code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
charlesmn | 0:c1910e04fc6c | 1 | /** |
charlesmn | 0:c1910e04fc6c | 2 | ****************************************************************************** |
charlesmn | 0:c1910e04fc6c | 3 | * @file 53l3a2.h |
charlesmn | 0:c1910e04fc6c | 4 | * @author IMG SW Application Team |
charlesmn | 0:c1910e04fc6c | 5 | * @brief This file contains the common defines and functions prototypes for |
charlesmn | 0:c1910e04fc6c | 6 | * the 53l3a2.c driver. |
charlesmn | 0:c1910e04fc6c | 7 | ****************************************************************************** |
charlesmn | 0:c1910e04fc6c | 8 | * @attention |
charlesmn | 0:c1910e04fc6c | 9 | * |
charlesmn | 0:c1910e04fc6c | 10 | * <h2><center>© Copyright (c) 2021 STMicroelectronics. |
charlesmn | 0:c1910e04fc6c | 11 | * All rights reserved.</center></h2> |
charlesmn | 0:c1910e04fc6c | 12 | * |
charlesmn | 0:c1910e04fc6c | 13 | * This software component is licensed by ST under BSD 3-Clause license, |
charlesmn | 0:c1910e04fc6c | 14 | * the "License"; You may not use this file except in compliance with the |
charlesmn | 0:c1910e04fc6c | 15 | * License. You may obtain a copy of the License at: |
charlesmn | 0:c1910e04fc6c | 16 | * opensource.org/licenses/BSD-3-Clause |
charlesmn | 0:c1910e04fc6c | 17 | * |
charlesmn | 0:c1910e04fc6c | 18 | ****************************************************************************** |
charlesmn | 0:c1910e04fc6c | 19 | */ |
charlesmn | 0:c1910e04fc6c | 20 | |
charlesmn | 0:c1910e04fc6c | 21 | /* Define to prevent recursive inclusion -------------------------------------*/ |
charlesmn | 0:c1910e04fc6c | 22 | #ifndef XNUCLEO_53L3A2_H |
charlesmn | 0:c1910e04fc6c | 23 | #define XNUCLEO_53L3A2_H |
charlesmn | 0:c1910e04fc6c | 24 | |
charlesmn | 0:c1910e04fc6c | 25 | /* Includes ------------------------------------------------------------------*/ |
charlesmn | 0:c1910e04fc6c | 26 | #include "53l3a2_conf.h" |
charlesmn | 0:c1910e04fc6c | 27 | #include "stdint.h" |
charlesmn | 0:c1910e04fc6c | 28 | |
charlesmn | 0:c1910e04fc6c | 29 | /** @addtogroup BSP |
charlesmn | 0:c1910e04fc6c | 30 | * @{ |
charlesmn | 0:c1910e04fc6c | 31 | */ |
charlesmn | 0:c1910e04fc6c | 32 | |
charlesmn | 0:c1910e04fc6c | 33 | /** @defgroup XNUCLEO_53L3A2 X-NUCLEO-53L3A2 |
charlesmn | 0:c1910e04fc6c | 34 | * @{ |
charlesmn | 0:c1910e04fc6c | 35 | */ |
charlesmn | 0:c1910e04fc6c | 36 | |
charlesmn | 0:c1910e04fc6c | 37 | /** @defgroup XNUCLEO_53L3A2_COMMON COMMON |
charlesmn | 0:c1910e04fc6c | 38 | * @{ |
charlesmn | 0:c1910e04fc6c | 39 | */ |
charlesmn | 0:c1910e04fc6c | 40 | |
charlesmn | 0:c1910e04fc6c | 41 | /* XNUCLEO-53L3A2 Device selector */ |
charlesmn | 0:c1910e04fc6c | 42 | enum VL53L3A2_dev_e |
charlesmn | 0:c1910e04fc6c | 43 | { |
charlesmn | 0:c1910e04fc6c | 44 | VL53L3A2_DEV_LEFT = 0, /* !< left satellite device P21 header */ |
charlesmn | 0:c1910e04fc6c | 45 | VL53L3A2_DEV_CENTER = 1, /* !< center (built-in) device */ |
charlesmn | 0:c1910e04fc6c | 46 | VL53L3A2_DEV_RIGHT = 2 /* !< Right satellite device P22 header */ |
charlesmn | 0:c1910e04fc6c | 47 | }; |
charlesmn | 0:c1910e04fc6c | 48 | |
charlesmn | 0:c1910e04fc6c | 49 | /** @defgroup XNUCLEO_53L3A2_COMMON_Exported_Functions Exported Functions |
charlesmn | 0:c1910e04fc6c | 50 | * @{ |
charlesmn | 0:c1910e04fc6c | 51 | */ |
charlesmn | 0:c1910e04fc6c | 52 | int32_t VL53L3A2_Init(void); |
charlesmn | 0:c1910e04fc6c | 53 | int32_t VL53L3A2_DeInit(void); |
charlesmn | 0:c1910e04fc6c | 54 | int32_t VL53L3A2_ResetId(uint8_t DevNo, uint8_t state); |
charlesmn | 0:c1910e04fc6c | 55 | int32_t VL53L3A2_SetDisplayString(const char *str); |
charlesmn | 0:c1910e04fc6c | 56 | |
charlesmn | 0:c1910e04fc6c | 57 | |
charlesmn | 0:c1910e04fc6c | 58 | #endif /* XNUCLEO_53L3A2_H */ |
charlesmn | 0:c1910e04fc6c | 59 | |
charlesmn | 0:c1910e04fc6c | 60 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
charlesmn | 0:c1910e04fc6c | 61 |