Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: VL53L0X
Fork of BSP_B-L475E-IOT01 by
Drivers/BSP/Components/Common/psensor.h@8:8cb54b28bc45, 2018-08-07 (annotated)
- Committer:
- fabio_gatti
- Date:
- Tue Aug 07 10:45:50 2018 +0000
- Revision:
- 8:8cb54b28bc45
- Parent:
- 6:9dfa42666f03
aggiunta la lettura laser e modificata la string di stampa su schermo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 4:137bb367ba50 | 1 | /** |
bcostm | 4:137bb367ba50 | 2 | ****************************************************************************** |
bcostm | 4:137bb367ba50 | 3 | * @file tsensor.h |
bcostm | 4:137bb367ba50 | 4 | * @author MCD Application Team |
bcostm | 4:137bb367ba50 | 5 | * @brief This header file contains the functions prototypes for the |
bcostm | 4:137bb367ba50 | 6 | * Temperature Sensor driver. |
bcostm | 4:137bb367ba50 | 7 | ****************************************************************************** |
bcostm | 4:137bb367ba50 | 8 | * @attention |
bcostm | 4:137bb367ba50 | 9 | * |
bcostm | 4:137bb367ba50 | 10 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
bcostm | 4:137bb367ba50 | 11 | * |
bcostm | 4:137bb367ba50 | 12 | * Redistribution and use in source and binary forms, with or without modification, |
bcostm | 4:137bb367ba50 | 13 | * are permitted provided that the following conditions are met: |
bcostm | 4:137bb367ba50 | 14 | * 1. Redistributions of source code must retain the above copyright notice, |
bcostm | 4:137bb367ba50 | 15 | * this list of conditions and the following disclaimer. |
bcostm | 4:137bb367ba50 | 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bcostm | 4:137bb367ba50 | 17 | * this list of conditions and the following disclaimer in the documentation |
bcostm | 4:137bb367ba50 | 18 | * and/or other materials provided with the distribution. |
bcostm | 4:137bb367ba50 | 19 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bcostm | 4:137bb367ba50 | 20 | * may be used to endorse or promote products derived from this software |
bcostm | 4:137bb367ba50 | 21 | * without specific prior written permission. |
bcostm | 4:137bb367ba50 | 22 | * |
bcostm | 4:137bb367ba50 | 23 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bcostm | 4:137bb367ba50 | 24 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bcostm | 4:137bb367ba50 | 25 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bcostm | 4:137bb367ba50 | 26 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bcostm | 4:137bb367ba50 | 27 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bcostm | 4:137bb367ba50 | 28 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bcostm | 4:137bb367ba50 | 29 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bcostm | 4:137bb367ba50 | 30 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bcostm | 4:137bb367ba50 | 31 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bcostm | 4:137bb367ba50 | 32 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bcostm | 4:137bb367ba50 | 33 | * |
bcostm | 4:137bb367ba50 | 34 | ****************************************************************************** |
bcostm | 4:137bb367ba50 | 35 | */ |
bcostm | 4:137bb367ba50 | 36 | |
bcostm | 4:137bb367ba50 | 37 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 4:137bb367ba50 | 38 | #ifndef __PSENSOR_H |
bcostm | 4:137bb367ba50 | 39 | #define __PSENSOR_H |
bcostm | 4:137bb367ba50 | 40 | |
bcostm | 4:137bb367ba50 | 41 | #ifdef __cplusplus |
bcostm | 4:137bb367ba50 | 42 | extern "C" { |
bcostm | 4:137bb367ba50 | 43 | #endif |
bcostm | 4:137bb367ba50 | 44 | |
bcostm | 4:137bb367ba50 | 45 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 4:137bb367ba50 | 46 | #include <stdint.h> |
bcostm | 4:137bb367ba50 | 47 | |
bcostm | 4:137bb367ba50 | 48 | /** @addtogroup BSP |
bcostm | 4:137bb367ba50 | 49 | * @{ |
bcostm | 4:137bb367ba50 | 50 | */ |
bcostm | 4:137bb367ba50 | 51 | |
bcostm | 4:137bb367ba50 | 52 | /** @addtogroup Components |
bcostm | 4:137bb367ba50 | 53 | * @{ |
bcostm | 4:137bb367ba50 | 54 | */ |
bcostm | 4:137bb367ba50 | 55 | |
bcostm | 4:137bb367ba50 | 56 | /** @addtogroup PSENSOR |
bcostm | 4:137bb367ba50 | 57 | * @{ |
bcostm | 4:137bb367ba50 | 58 | */ |
bcostm | 4:137bb367ba50 | 59 | |
bcostm | 4:137bb367ba50 | 60 | /** @defgroup PSENSOR_Exported_Types |
bcostm | 4:137bb367ba50 | 61 | * @{ |
bcostm | 4:137bb367ba50 | 62 | */ |
bcostm | 4:137bb367ba50 | 63 | |
bcostm | 4:137bb367ba50 | 64 | /** @defgroup PSENSOR_Driver_structure Temperature Sensor Driver structure |
bcostm | 4:137bb367ba50 | 65 | * @{ |
bcostm | 4:137bb367ba50 | 66 | */ |
bcostm | 4:137bb367ba50 | 67 | typedef struct |
bcostm | 4:137bb367ba50 | 68 | { |
bcostm | 4:137bb367ba50 | 69 | void (*Init)(uint16_t); |
bcostm | 4:137bb367ba50 | 70 | uint8_t (*ReadID)(uint16_t); |
bcostm | 4:137bb367ba50 | 71 | float (*ReadPressure)(uint16_t); |
bcostm | 4:137bb367ba50 | 72 | }PSENSOR_DrvTypeDef; |
bcostm | 4:137bb367ba50 | 73 | /** |
bcostm | 4:137bb367ba50 | 74 | * @} |
bcostm | 4:137bb367ba50 | 75 | */ |
bcostm | 4:137bb367ba50 | 76 | |
bcostm | 4:137bb367ba50 | 77 | /** |
bcostm | 4:137bb367ba50 | 78 | * @} |
bcostm | 4:137bb367ba50 | 79 | */ |
bcostm | 4:137bb367ba50 | 80 | |
bcostm | 4:137bb367ba50 | 81 | /** |
bcostm | 4:137bb367ba50 | 82 | * @} |
bcostm | 4:137bb367ba50 | 83 | */ |
bcostm | 4:137bb367ba50 | 84 | |
bcostm | 4:137bb367ba50 | 85 | /** |
bcostm | 4:137bb367ba50 | 86 | * @} |
bcostm | 4:137bb367ba50 | 87 | */ |
bcostm | 4:137bb367ba50 | 88 | |
bcostm | 4:137bb367ba50 | 89 | /** |
bcostm | 4:137bb367ba50 | 90 | * @} |
bcostm | 4:137bb367ba50 | 91 | */ |
bcostm | 4:137bb367ba50 | 92 | |
bcostm | 4:137bb367ba50 | 93 | #ifdef __cplusplus |
bcostm | 4:137bb367ba50 | 94 | } |
bcostm | 4:137bb367ba50 | 95 | #endif |
bcostm | 4:137bb367ba50 | 96 | |
bcostm | 4:137bb367ba50 | 97 | #endif /* __PSENSOR_H */ |
bcostm | 4:137bb367ba50 | 98 | |
bcostm | 4:137bb367ba50 | 99 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |