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@7:bfe8272ced90, 2019-09-24 (annotated)
- Committer:
- jeromecoutant
- Date:
- Tue Sep 24 15:30:09 2019 +0200
- Revision:
- 7:bfe8272ced90
- Parent:
- 6:9dfa42666f03
Update BSP files with STM32Cube L4 V1.14.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 4:137bb367ba50 | 1 | /** |
bcostm | 4:137bb367ba50 | 2 | ****************************************************************************** |
jeromecoutant | 7:bfe8272ced90 | 3 | * @file psensor.h |
bcostm | 4:137bb367ba50 | 4 | * @author MCD Application Team |
bcostm | 4:137bb367ba50 | 5 | * @brief This header file contains the functions prototypes for the |
jeromecoutant | 7:bfe8272ced90 | 6 | * Pressure Sensor driver. |
bcostm | 4:137bb367ba50 | 7 | ****************************************************************************** |
bcostm | 4:137bb367ba50 | 8 | * @attention |
bcostm | 4:137bb367ba50 | 9 | * |
jeromecoutant | 7:bfe8272ced90 | 10 | * <h2><center>© Copyright (c) 2017 STMicroelectronics. |
jeromecoutant | 7:bfe8272ced90 | 11 | * All rights reserved.</center></h2> |
bcostm | 4:137bb367ba50 | 12 | * |
jeromecoutant | 7:bfe8272ced90 | 13 | * This software component is licensed by ST under BSD 3-Clause license, |
jeromecoutant | 7:bfe8272ced90 | 14 | * the "License"; You may not use this file except in compliance with the |
jeromecoutant | 7:bfe8272ced90 | 15 | * License. You may obtain a copy of the License at: |
jeromecoutant | 7:bfe8272ced90 | 16 | * opensource.org/licenses/BSD-3-Clause |
bcostm | 4:137bb367ba50 | 17 | * |
bcostm | 4:137bb367ba50 | 18 | ****************************************************************************** |
bcostm | 4:137bb367ba50 | 19 | */ |
bcostm | 4:137bb367ba50 | 20 | |
bcostm | 4:137bb367ba50 | 21 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 4:137bb367ba50 | 22 | #ifndef __PSENSOR_H |
bcostm | 4:137bb367ba50 | 23 | #define __PSENSOR_H |
bcostm | 4:137bb367ba50 | 24 | |
bcostm | 4:137bb367ba50 | 25 | #ifdef __cplusplus |
bcostm | 4:137bb367ba50 | 26 | extern "C" { |
bcostm | 4:137bb367ba50 | 27 | #endif |
bcostm | 4:137bb367ba50 | 28 | |
bcostm | 4:137bb367ba50 | 29 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 4:137bb367ba50 | 30 | #include <stdint.h> |
bcostm | 4:137bb367ba50 | 31 | |
bcostm | 4:137bb367ba50 | 32 | /** @addtogroup BSP |
bcostm | 4:137bb367ba50 | 33 | * @{ |
bcostm | 4:137bb367ba50 | 34 | */ |
bcostm | 4:137bb367ba50 | 35 | |
bcostm | 4:137bb367ba50 | 36 | /** @addtogroup Components |
bcostm | 4:137bb367ba50 | 37 | * @{ |
bcostm | 4:137bb367ba50 | 38 | */ |
bcostm | 4:137bb367ba50 | 39 | |
bcostm | 4:137bb367ba50 | 40 | /** @addtogroup PSENSOR |
bcostm | 4:137bb367ba50 | 41 | * @{ |
bcostm | 4:137bb367ba50 | 42 | */ |
bcostm | 4:137bb367ba50 | 43 | |
bcostm | 4:137bb367ba50 | 44 | /** @defgroup PSENSOR_Exported_Types |
bcostm | 4:137bb367ba50 | 45 | * @{ |
bcostm | 4:137bb367ba50 | 46 | */ |
bcostm | 4:137bb367ba50 | 47 | |
jeromecoutant | 7:bfe8272ced90 | 48 | /** @defgroup PSENSOR_Driver_structure Pressure Sensor Driver structure |
bcostm | 4:137bb367ba50 | 49 | * @{ |
bcostm | 4:137bb367ba50 | 50 | */ |
bcostm | 4:137bb367ba50 | 51 | typedef struct |
bcostm | 4:137bb367ba50 | 52 | { |
bcostm | 4:137bb367ba50 | 53 | void (*Init)(uint16_t); |
bcostm | 4:137bb367ba50 | 54 | uint8_t (*ReadID)(uint16_t); |
bcostm | 4:137bb367ba50 | 55 | float (*ReadPressure)(uint16_t); |
bcostm | 4:137bb367ba50 | 56 | }PSENSOR_DrvTypeDef; |
bcostm | 4:137bb367ba50 | 57 | /** |
bcostm | 4:137bb367ba50 | 58 | * @} |
bcostm | 4:137bb367ba50 | 59 | */ |
bcostm | 4:137bb367ba50 | 60 | |
bcostm | 4:137bb367ba50 | 61 | /** |
bcostm | 4:137bb367ba50 | 62 | * @} |
bcostm | 4:137bb367ba50 | 63 | */ |
bcostm | 4:137bb367ba50 | 64 | |
bcostm | 4:137bb367ba50 | 65 | /** |
bcostm | 4:137bb367ba50 | 66 | * @} |
bcostm | 4:137bb367ba50 | 67 | */ |
bcostm | 4:137bb367ba50 | 68 | |
bcostm | 4:137bb367ba50 | 69 | /** |
bcostm | 4:137bb367ba50 | 70 | * @} |
bcostm | 4:137bb367ba50 | 71 | */ |
bcostm | 4:137bb367ba50 | 72 | |
bcostm | 4:137bb367ba50 | 73 | /** |
bcostm | 4:137bb367ba50 | 74 | * @} |
bcostm | 4:137bb367ba50 | 75 | */ |
bcostm | 4:137bb367ba50 | 76 | |
bcostm | 4:137bb367ba50 | 77 | #ifdef __cplusplus |
bcostm | 4:137bb367ba50 | 78 | } |
bcostm | 4:137bb367ba50 | 79 | #endif |
bcostm | 4:137bb367ba50 | 80 | |
bcostm | 4:137bb367ba50 | 81 | #endif /* __PSENSOR_H */ |
bcostm | 4:137bb367ba50 | 82 | |
bcostm | 4:137bb367ba50 | 83 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |