Contains the BSP driver for the B-L475E-IOT01 board.
Dependents: mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more
https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/
Drivers/BSP/Components/Common/psensor.h@4:137bb367ba50, 2017-04-14 (annotated)
- Committer:
- bcostm
- Date:
- Fri Apr 14 13:09:54 2017 +0200
- Revision:
- 4:137bb367ba50
- Child:
- 6:9dfa42666f03
Add remaining Components files
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 | * @version V5.0.0 |
bcostm | 4:137bb367ba50 | 6 | * @date 01-March-2017 |
bcostm | 4:137bb367ba50 | 7 | * @brief This header file contains the functions prototypes for the |
bcostm | 4:137bb367ba50 | 8 | * Temperature Sensor driver. |
bcostm | 4:137bb367ba50 | 9 | ****************************************************************************** |
bcostm | 4:137bb367ba50 | 10 | * @attention |
bcostm | 4:137bb367ba50 | 11 | * |
bcostm | 4:137bb367ba50 | 12 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
bcostm | 4:137bb367ba50 | 13 | * |
bcostm | 4:137bb367ba50 | 14 | * Redistribution and use in source and binary forms, with or without modification, |
bcostm | 4:137bb367ba50 | 15 | * are permitted provided that the following conditions are met: |
bcostm | 4:137bb367ba50 | 16 | * 1. Redistributions of source code must retain the above copyright notice, |
bcostm | 4:137bb367ba50 | 17 | * this list of conditions and the following disclaimer. |
bcostm | 4:137bb367ba50 | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bcostm | 4:137bb367ba50 | 19 | * this list of conditions and the following disclaimer in the documentation |
bcostm | 4:137bb367ba50 | 20 | * and/or other materials provided with the distribution. |
bcostm | 4:137bb367ba50 | 21 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bcostm | 4:137bb367ba50 | 22 | * may be used to endorse or promote products derived from this software |
bcostm | 4:137bb367ba50 | 23 | * without specific prior written permission. |
bcostm | 4:137bb367ba50 | 24 | * |
bcostm | 4:137bb367ba50 | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bcostm | 4:137bb367ba50 | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bcostm | 4:137bb367ba50 | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bcostm | 4:137bb367ba50 | 28 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bcostm | 4:137bb367ba50 | 29 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bcostm | 4:137bb367ba50 | 30 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bcostm | 4:137bb367ba50 | 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bcostm | 4:137bb367ba50 | 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bcostm | 4:137bb367ba50 | 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bcostm | 4:137bb367ba50 | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bcostm | 4:137bb367ba50 | 35 | * |
bcostm | 4:137bb367ba50 | 36 | ****************************************************************************** |
bcostm | 4:137bb367ba50 | 37 | */ |
bcostm | 4:137bb367ba50 | 38 | |
bcostm | 4:137bb367ba50 | 39 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 4:137bb367ba50 | 40 | #ifndef __PSENSOR_H |
bcostm | 4:137bb367ba50 | 41 | #define __PSENSOR_H |
bcostm | 4:137bb367ba50 | 42 | |
bcostm | 4:137bb367ba50 | 43 | #ifdef __cplusplus |
bcostm | 4:137bb367ba50 | 44 | extern "C" { |
bcostm | 4:137bb367ba50 | 45 | #endif |
bcostm | 4:137bb367ba50 | 46 | |
bcostm | 4:137bb367ba50 | 47 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 4:137bb367ba50 | 48 | #include <stdint.h> |
bcostm | 4:137bb367ba50 | 49 | |
bcostm | 4:137bb367ba50 | 50 | /** @addtogroup BSP |
bcostm | 4:137bb367ba50 | 51 | * @{ |
bcostm | 4:137bb367ba50 | 52 | */ |
bcostm | 4:137bb367ba50 | 53 | |
bcostm | 4:137bb367ba50 | 54 | /** @addtogroup Components |
bcostm | 4:137bb367ba50 | 55 | * @{ |
bcostm | 4:137bb367ba50 | 56 | */ |
bcostm | 4:137bb367ba50 | 57 | |
bcostm | 4:137bb367ba50 | 58 | /** @addtogroup PSENSOR |
bcostm | 4:137bb367ba50 | 59 | * @{ |
bcostm | 4:137bb367ba50 | 60 | */ |
bcostm | 4:137bb367ba50 | 61 | |
bcostm | 4:137bb367ba50 | 62 | /** @defgroup PSENSOR_Exported_Types |
bcostm | 4:137bb367ba50 | 63 | * @{ |
bcostm | 4:137bb367ba50 | 64 | */ |
bcostm | 4:137bb367ba50 | 65 | |
bcostm | 4:137bb367ba50 | 66 | /** @defgroup PSENSOR_Driver_structure Temperature Sensor Driver structure |
bcostm | 4:137bb367ba50 | 67 | * @{ |
bcostm | 4:137bb367ba50 | 68 | */ |
bcostm | 4:137bb367ba50 | 69 | typedef struct |
bcostm | 4:137bb367ba50 | 70 | { |
bcostm | 4:137bb367ba50 | 71 | void (*Init)(uint16_t); |
bcostm | 4:137bb367ba50 | 72 | uint8_t (*ReadID)(uint16_t); |
bcostm | 4:137bb367ba50 | 73 | float (*ReadPressure)(uint16_t); |
bcostm | 4:137bb367ba50 | 74 | }PSENSOR_DrvTypeDef; |
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 | */ |
bcostm | 4:137bb367ba50 | 94 | |
bcostm | 4:137bb367ba50 | 95 | #ifdef __cplusplus |
bcostm | 4:137bb367ba50 | 96 | } |
bcostm | 4:137bb367ba50 | 97 | #endif |
bcostm | 4:137bb367ba50 | 98 | |
bcostm | 4:137bb367ba50 | 99 | #endif /* __PSENSOR_H */ |
bcostm | 4:137bb367ba50 | 100 | |
bcostm | 4:137bb367ba50 | 101 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |