wayne roberts
/
CB-LORA-MR_utility
test sending sensor results over lora radio. Accelerometer and temp/pressure.
Embed:
(wiki syntax)
Show/hide line numbers
LPS22HH_Driver_HL.h
Go to the documentation of this file.
00001 /** 00002 ****************************************************************************** 00003 * @file LPS22HH_Driver_HL.h 00004 * @author MEMS Application Team 00005 * @brief This file contains definitions for the LPS22HH_Driver_HL.c firmware driver 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * <h2><center>© COPYRIGHT(c) 2018 STMicroelectronics</center></h2> 00010 * 00011 * Redistribution and use in source and binary forms, with or without modification, 00012 * are permitted provided that the following conditions are met: 00013 * 1. Redistributions of source code must retain the above copyright notice, 00014 * this list of conditions and the following disclaimer. 00015 * 2. Redistributions in binary form must reproduce the above copyright notice, 00016 * this list of conditions and the following disclaimer in the documentation 00017 * and/or other materials provided with the distribution. 00018 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00019 * may be used to endorse or promote products derived from this software 00020 * without specific prior written permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00023 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00024 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00025 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00026 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00027 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00028 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00029 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00030 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00031 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00032 * 00033 ****************************************************************************** 00034 */ 00035 00036 /* Define to prevent recursive inclusion -------------------------------------*/ 00037 #ifndef __LPS22HH_DRIVER_HL_H 00038 #define __LPS22HH_DRIVER_HL_H 00039 00040 #ifdef __cplusplus 00041 extern "C" { 00042 #endif 00043 00044 00045 00046 /* Includes ------------------------------------------------------------------*/ 00047 #include "pressure.h" 00048 #include "temperature.h" 00049 00050 /* Include pressure sensor component drivers. */ 00051 #include "LPS22HH_Driver.h" 00052 00053 00054 00055 /** @addtogroup BSP BSP 00056 * @{ 00057 */ 00058 00059 /** @addtogroup COMPONENTS COMPONENTS 00060 * @{ 00061 */ 00062 00063 /** @addtogroup LPS22HH LPS22HH 00064 * @{ 00065 */ 00066 00067 /** @addtogroup LPS22HH_Public_Constants Public constants 00068 * @{ 00069 */ 00070 00071 #define LPS22HH_SENSORS_MAX_NUM 1 /**< LPS22HH max number of instances */ 00072 00073 /** 00074 * @} 00075 */ 00076 00077 /** @addtogroup LPS22HH_Public_Types LPS22HH Public Types 00078 * @{ 00079 */ 00080 00081 /** 00082 * @brief LPS22HH combo specific data internal structure definition 00083 */ 00084 typedef struct 00085 { 00086 uint8_t isPressInitialized; 00087 uint8_t isTempInitialized; 00088 uint8_t isPressEnabled; 00089 uint8_t isTempEnabled; 00090 float Last_ODR; 00091 } LPS22HH_Combo_Data_t; 00092 00093 /** 00094 * @brief LPS22HH pressure specific data internal structure definition 00095 */ 00096 typedef struct 00097 { 00098 LPS22HH_Combo_Data_t *comboData; /* Combo data to manage in software enable/disable of the combo sensors */ 00099 } LPS22HH_P_Data_t; 00100 00101 /** 00102 * @brief LPS22HH temperature specific data internal structure definition 00103 */ 00104 typedef struct 00105 { 00106 LPS22HH_Combo_Data_t *comboData; /* Combo data to manage in software enable/disable of the combo sensors */ 00107 } LPS22HH_T_Data_t; 00108 00109 /** 00110 * @} 00111 */ 00112 00113 /** @addtogroup LPS22HH_Public_Variables Public variables 00114 * @{ 00115 */ 00116 00117 extern PRESSURE_Drv_t LPS22HH_P_Drv; 00118 extern TEMPERATURE_Drv_t LPS22HH_T_Drv; 00119 extern LPS22HH_Combo_Data_t LPS22HH_Combo_Data[LPS22HH_SENSORS_MAX_NUM]; 00120 00121 /** 00122 * @} 00123 */ 00124 00125 /** 00126 * @} 00127 */ 00128 00129 /** 00130 * @} 00131 */ 00132 00133 /** 00134 * @} 00135 */ 00136 00137 #ifdef __cplusplus 00138 } 00139 #endif 00140 00141 #endif /* __LPS22HH_DRIVER_HL_H */ 00142 00143 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 16:29:49 by 1.7.2