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
stm32l475e_iot01_hsensor.h
00001 /** 00002 ****************************************************************************** 00003 * @file stm32l475e_iot01_hsensor.h 00004 * @author MCD Application Team 00005 * @brief This file provides a set of functions needed to manage the humidity sensor 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * <h2><center>© Copyright (c) 2017 STMicroelectronics. 00010 * All rights reserved.</center></h2> 00011 * 00012 * This software component is licensed by ST under BSD 3-Clause license, 00013 * the "License"; You may not use this file except in compliance with the 00014 * License. You may obtain a copy of the License at: 00015 * opensource.org/licenses/BSD-3-Clause 00016 * 00017 ****************************************************************************** 00018 */ 00019 00020 /* Define to prevent recursive inclusion -------------------------------------*/ 00021 #ifndef __STM32L475E_IOT01_HSENSOR_H 00022 #define __STM32L475E_IOT01_HSENSOR_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 /* Includes ------------------------------------------------------------------*/ 00029 #include "stm32l475e_iot01.h" 00030 #include "../Components/hts221/hts221.h" 00031 00032 /** @addtogroup BSP 00033 * @{ 00034 */ 00035 00036 /** @addtogroup STM32L475E_IOT01 00037 * @{ 00038 */ 00039 00040 /** @addtogroup STM32L475E_IOT01_HUMIDITY 00041 * @{ 00042 */ 00043 00044 /* Exported types ------------------------------------------------------------*/ 00045 /** @defgroup STM32L475E_IOT01_HUMIDITY_Exported_Types HUMIDITY Exported Types 00046 * @{ 00047 */ 00048 00049 /** 00050 * @brief HSENSOR Status 00051 */ 00052 typedef enum 00053 { 00054 HSENSOR_OK = 0, 00055 HSENSOR_ERROR 00056 }HSENSOR_Status_TypDef; 00057 00058 /** 00059 * @} 00060 */ 00061 00062 /** @defgroup STM32L475E_IOT01_HUMIDITY_Exported_Functions HUMIDITY Exported Functions 00063 * @{ 00064 */ 00065 /* Sensor Configuration Functions */ 00066 uint32_t BSP_HSENSOR_Init(void); 00067 uint8_t BSP_HSENSOR_ReadID(void); 00068 float BSP_HSENSOR_ReadHumidity(void); 00069 /** 00070 * @} 00071 */ 00072 00073 #ifdef __cplusplus 00074 } 00075 #endif 00076 00077 /** 00078 * @} 00079 */ 00080 00081 /** 00082 * @} 00083 */ 00084 00085 /** 00086 * @} 00087 */ 00088 00089 #endif /* __STM32L475E_IOT01_HSENSOR_H */ 00090 00091 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 13:55:42 by 1.7.2