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.
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_tsensor.h
00001 /** 00002 ****************************************************************************** 00003 * @file stm32l475e_iot01_tsensor.h 00004 * @author MCD Application Team 00005 * @brief This file provides a set of functions needed to manage the temperature 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_TSENSOR_H 00022 #define __STM32L475E_IOT01_TSENSOR_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 /* Includes ------------------------------------------------------------------*/ 00029 #include "stm32l475e_iot01.h" 00030 #ifdef USE_LPS22HB_TEMP 00031 #include "../Components/lps22hb/lps22hb.h" 00032 #else /* USE_HTS221_TEMP */ 00033 #include "../Components/hts221/hts221.h" 00034 #endif 00035 00036 /** @addtogroup BSP 00037 * @{ 00038 */ 00039 00040 /** @addtogroup STM32L475E_IOT01 00041 * @{ 00042 */ 00043 00044 /** @addtogroup STM32L475E_IOT01_TEMPERATURE 00045 * @{ 00046 */ 00047 00048 /** @defgroup STM32L475E_IOT01_TEMPERATURE_Exported_Types TEMPERATURE Exported Types 00049 * @{ 00050 */ 00051 00052 /** 00053 * @brief TSENSOR Status 00054 */ 00055 typedef enum 00056 { 00057 TSENSOR_OK = 0, 00058 TSENSOR_ERROR 00059 }TSENSOR_Status_TypDef; 00060 00061 /** 00062 * @} 00063 */ 00064 00065 00066 /** @defgroup STM32L475E_IOT01_TEMPERATURE_Exported_Functions TEMPERATURE Exported Constants 00067 * @{ 00068 */ 00069 /* Exported macros -----------------------------------------------------------*/ 00070 /* Private macros ------------------------------------------------------------*/ 00071 /* Exported functions --------------------------------------------------------*/ 00072 /* Sensor Configuration Functions */ 00073 uint32_t BSP_TSENSOR_Init(void); 00074 float BSP_TSENSOR_ReadTemp(void); 00075 /** 00076 * @} 00077 */ 00078 00079 #ifdef __cplusplus 00080 } 00081 #endif 00082 00083 /** 00084 * @} 00085 */ 00086 00087 /** 00088 * @} 00089 */ 00090 00091 /** 00092 * @} 00093 */ 00094 00095 #endif /* __STM32L475E_IOT01_TSENSOR_H */ 00096 00097 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 13:55:42 by
1.7.2