test sending sensor results over lora radio. Accelerometer and temp/pressure.

Dependencies:   SX127x

Embed: (wiki syntax)

« Back to documentation index

x_nucleo_iks01a2_pressure.h File Reference

x_nucleo_iks01a2_pressure.h File Reference

This file contains definitions for x_nucleo_iks01a2_pressure.c. More...

Go to the source code of this file.

Functions

DrvStatusTypeDef BSP_PRESSURE_Init (PRESSURE_ID_t id, void **handle)
 Initialize a pressure sensor.
DrvStatusTypeDef BSP_PRESSURE_DeInit (void **handle)
 Deinitialize a pressure sensor.
DrvStatusTypeDef BSP_PRESSURE_Sensor_Enable (void *handle)
 Enable pressure sensor.
DrvStatusTypeDef BSP_PRESSURE_Sensor_Disable (void *handle)
 Disable pressure sensor.
DrvStatusTypeDef BSP_PRESSURE_IsInitialized (void *handle, uint8_t *status)
 Check if the pressure sensor is initialized.
DrvStatusTypeDef BSP_PRESSURE_IsEnabled (void *handle, uint8_t *status)
 Check if the pressure sensor is enabled.
DrvStatusTypeDef BSP_PRESSURE_IsCombo (void *handle, uint8_t *status)
 Check if the pressure sensor is combo.
DrvStatusTypeDef BSP_PRESSURE_Get_Instance (void *handle, uint8_t *instance)
 Get the pressure sensor instance.
DrvStatusTypeDef BSP_PRESSURE_Get_WhoAmI (void *handle, uint8_t *who_am_i)
 Get the WHO_AM_I ID of the pressure sensor.
DrvStatusTypeDef BSP_PRESSURE_Check_WhoAmI (void *handle)
 Check the WHO_AM_I ID of the pressure sensor.
DrvStatusTypeDef BSP_PRESSURE_Get_Press (void *handle, float *pressure)
 Get the pressure value.
DrvStatusTypeDef BSP_PRESSURE_Get_ODR (void *handle, float *odr)
 Get the pressure sensor output data rate.
DrvStatusTypeDef BSP_PRESSURE_Set_ODR (void *handle, SensorOdr_t odr)
 Set the pressure sensor output data rate.
DrvStatusTypeDef BSP_PRESSURE_Set_ODR_Value (void *handle, float odr)
 Set the pressure sensor output data rate.
DrvStatusTypeDef BSP_PRESSURE_Read_Reg (void *handle, uint8_t reg, uint8_t *data)
 Read the data from register.
DrvStatusTypeDef BSP_PRESSURE_Write_Reg (void *handle, uint8_t reg, uint8_t data)
 Write the data to register.
DrvStatusTypeDef BSP_PRESSURE_Get_DRDY_Status (void *handle, uint8_t *status)
 Get pressure data ready status.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Full_Status_Ext (void *handle, uint8_t *status)
 Get FIFO FULL status (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Fth_Status_Ext (void *handle, uint8_t *status)
 Get FIFO THR status (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Ovr_Status_Ext (void *handle, uint8_t *status)
 Get FIFO OVR status (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Data_Ext (void *handle, float *pressure, float *temperature)
 Get FIFO data (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Num_Of_Samples_Ext (void *handle, uint8_t *nSamples)
 Get number of unread FIFO samples (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Set_Mode_Ext (void *handle, uint8_t mode)
 Set FIFO mode (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Set_Interrupt_Ext (void *handle, uint8_t interrupt)
 Set FIFO interrupt (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Reset_Interrupt_Ext (void *handle, uint8_t interrupt)
 Set FIFO interrupt (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Set_Watermark_Level_Ext (void *handle, uint8_t watermark)
 Set FIFO watermark (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Stop_On_Fth_Ext (void *handle, uint8_t status)
 Set FIFO to stop on FTH (available only for LPS22HB sensor)
DrvStatusTypeDef BSP_PRESSURE_FIFO_Usage_Ext (void *handle, uint8_t status)
 FIFO usage (available only for LPS22HB sensor)

Detailed Description

This file contains definitions for x_nucleo_iks01a2_pressure.c.

Author:
MEMS Application Team
Attention:

© COPYRIGHT(c) 2018 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file x_nucleo_iks01a2_pressure.h.