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.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
LPS22HB_driver.c File Reference
LPS22HB driver file. More...
Go to the source code of this file.
Functions | |
LPS22HB_Error_et | LPS22HB_Get_DeviceID (void *handle, uint8_t *deviceid) |
Read identification code by WHO_AM_I register. | |
LPS22HB_Error_et | LPS22HB_Get_DriverVersion (LPS22HB_driverVersion_st *Version) |
Get the LPS22HB driver version. | |
LPS22HB_Error_et | LPS22HB_Set_PowerMode (void *handle, LPS22HB_PowerMode_et mode) |
Set LPS22HB Low Power or Low Noise Mode Configuration. | |
LPS22HB_Error_et | LPS22HB_Get_PowerMode (void *handle, LPS22HB_PowerMode_et *mode) |
Get LPS22HB Power Mode. | |
LPS22HB_Error_et | LPS22HB_Set_Odr (void *handle, LPS22HB_Odr_et odr) |
Set LPS22HB Output Data Rate. | |
LPS22HB_Error_et | LPS22HB_Get_Odr (void *handle, LPS22HB_Odr_et *odr) |
Get LPS22HB Output Data Rate. | |
LPS22HB_Error_et | LPS22HB_Set_LowPassFilter (void *handle, LPS22HB_State_et state) |
Enable/Disale low-pass filter on LPS22HB pressure data. | |
LPS22HB_Error_et | LPS22HB_Set_LowPassFilterCutoff (void *handle, LPS22HB_LPF_Cutoff_et cutoff) |
Set low-pass filter cutoff configuration on LPS22HB pressure data. | |
LPS22HB_Error_et | LPS22HB_Set_Bdu (void *handle, LPS22HB_Bdu_et bdu) |
Set Block Data Mode It is recommended to set BDU bit to ‘1’. | |
LPS22HB_Error_et | LPS22HB_Get_Bdu (void *handle, LPS22HB_Bdu_et *bdu) |
Get Block Data Mode. | |
LPS22HB_Error_et | LPS22HB_Set_SpiInterface (void *handle, LPS22HB_SPIMode_et spimode) |
Set SPI mode: 3 Wire Interface or 4 Wire Interface. | |
LPS22HB_Error_et | LPS22HB_Set_ClockTreeConfifuration (void *handle, LPS22HB_CTE_et mode) |
Clock Tree Configuration. | |
LPS22HB_Error_et | LPS22HB_Get_SpiInterface (void *handle, LPS22HB_SPIMode_et *spimode) |
Get SPI mode: 3 Wire Interface or 4 Wire Interface. | |
LPS22HB_Error_et | LPS22HB_SwReset (void *handle) |
Software Reset. | |
LPS22HB_Error_et | LPS22HB_MemoryBoot (void *handle) |
Reboot Memory Content. | |
LPS22HB_Error_et | LPS22HB_SwResetAndMemoryBoot (void *handle) |
Software Reset ann Reboot Memory Content. | |
LPS22HB_Error_et | LPS22HB_Set_FifoModeUse (void *handle, LPS22HB_State_et status) |
Enable/Disable FIFO Mode. | |
LPS22HB_Error_et | LPS22HB_Set_FifoWatermarkLevelUse (void *handle, LPS22HB_State_et status) |
Enable/Disable FIFO Watermark Level Use. | |
LPS22HB_Error_et | LPS22HB_Set_AutomaticIncrementRegAddress (void *handle, LPS22HB_State_et status) |
Enable or Disable the Automatic increment register address during a multiple byte access with a serial interface (I2C or SPI) | |
LPS22HB_Error_et | LPS22HB_Set_I2C (void *handle, LPS22HB_State_et statei2c) |
Enable/Disable I2C Interface. | |
LPS22HB_Error_et | LPS22HB_StartOneShotMeasurement (void *handle) |
Set the one-shot bit in order to start acquisition when the ONE SHOT mode has been selected by the ODR configuration. | |
LPS22HB_Error_et | LPS22HB_Set_InterruptActiveLevel (void *handle, LPS22HB_InterruptActiveLevel_et mode) |
Set Interrupt Active on High or Low Level. | |
LPS22HB_Error_et | LPS22HB_Set_InterruptOutputType (void *handle, LPS22HB_OutputType_et output) |
Push-pull/open drain selection on interrupt pads. | |
LPS22HB_Error_et | LPS22HB_Set_InterruptControlConfig (void *handle, LPS22HB_OutputSignalConfig_et config) |
Set Data signal on INT pad control bits. | |
LPS22HB_Error_et | LPS22HB_Set_DRDYInterrupt (void *handle, LPS22HB_State_et status) |
Enable/Disable Data-ready signal on INT_DRDY pin. | |
LPS22HB_Error_et | LPS22HB_Set_FIFO_OVR_Interrupt (void *handle, LPS22HB_State_et status) |
Enable/Disable FIFO overrun interrupt on INT_DRDY pin. | |
LPS22HB_Error_et | LPS22HB_Set_FIFO_FTH_Interrupt (void *handle, LPS22HB_State_et status) |
Enable/Disable FIFO threshold (Watermark) interrupt on INT_DRDY pin. | |
LPS22HB_Error_et | LPS22HB_Set_FIFO_FULL_Interrupt (void *handle, LPS22HB_State_et status) |
Enable/Disable FIFO FULL interrupt on INT_DRDY pin. | |
LPS22HB_Error_et | LPS22HB_Set_AutoRifP (void *handle) |
Enable AutoRifP function When this function is enabled, an internal register is set with the current pressure values and the content is subtracted from the pressure output value and result is used for the interrupt generation. | |
LPS22HB_Error_et | LPS22HB_ResetAutoRifP (void *handle) |
Disable AutoRifP function the RESET_ARP bit is used to disable the AUTORIFP function. | |
LPS22HB_Error_et | LPS22HB_Set_AutoZeroFunction (void *handle) |
????? | |
LPS22HB_Error_et | LPS22HB_ResetAutoZeroFunction (void *handle) |
??? | |
LPS22HB_Error_et | LPS22HB_Set_InterruptDifferentialGeneration (void *handle, LPS22HB_State_et diff_en) |
Enable/ Disable the computing of differential pressure output (Interrupt Generation) | |
LPS22HB_Error_et | LPS22HB_Get_InterruptDifferentialGeneration (void *handle, LPS22HB_State_et *diff_en) |
Get the DIFF_EN bit value. | |
LPS22HB_Error_et | LPS22HB_LatchInterruptRequest (void *handle, LPS22HB_State_et status) |
Latch Interrupt request to the INT_SOURCE register. | |
LPS22HB_Error_et | LPS22HB_Set_PLE (void *handle, LPS22HB_State_et status) |
Enable Interrupt Generation on differential pressure Low event. | |
LPS22HB_Error_et | LPS22HB_Set_PHE (void *handle, LPS22HB_State_et status) |
Enable Interrupt Generation on differential pressure High event. | |
LPS22HB_Error_et | LPS22HB_Get_InterruptDifferentialEventStatus (void *handle, LPS22HB_InterruptDiffStatus_st *interruptsource) |
Get the Interrupt Generation on differential pressure status event and the Boot Status. | |
LPS22HB_Error_et | LPS22HB_Get_DataStatus (void *handle, LPS22HB_DataStatus_st *datastatus) |
Get the status of Pressure and Temperature data. | |
LPS22HB_Error_et | LPS22HB_Get_RawPressure (void *handle, int32_t *raw_press) |
Get the LPS22HB raw presure value The data are expressed as PRESS_OUT_H/_L/_XL in 2’s complement. | |
LPS22HB_Error_et | LPS22HB_Get_Pressure (void *handle, int32_t *Pout) |
Get the LPS22HB Pressure value in hPA. | |
LPS22HB_Error_et | LPS22HB_Get_RawTemperature (void *handle, int16_t *raw_data) |
Get the Raw Temperature value. | |
LPS22HB_Error_et | LPS22HB_Get_Temperature (void *handle, int16_t *Tout) |
Get the Temperature value in °C. | |
LPS22HB_Error_et | LPS22HB_Get_PressureThreshold (void *handle, int16_t *P_ths) |
Get the threshold value used for pressure interrupt generation (hPA). | |
LPS22HB_Error_et | LPS22HB_Set_PressureThreshold (void *handle, int16_t P_ths) |
Set the threshold value used for pressure interrupt generation (hPA). | |
LPS22HB_Error_et | LPS22HB_Set_FifoMode (void *handle, LPS22HB_FifoMode_et fifomode) |
Set Fifo Mode. | |
LPS22HB_Error_et | LPS22HB_Get_FifoMode (void *handle, LPS22HB_FifoMode_et *fifomode) |
Get Fifo Mode. | |
LPS22HB_Error_et | LPS22HB_Set_FifoWatermarkLevel (void *handle, uint8_t wtmlevel) |
Set Fifo Watermark Level. | |
LPS22HB_Error_et | LPS22HB_Get_FifoWatermarkLevel (void *handle, uint8_t *wtmlevel) |
Get FIFO Watermark Level. | |
LPS22HB_Error_et | LPS22HB_Get_FifoStatus (void *handle, LPS22HB_FifoStatus_st *status) |
Get the Fifo Status. | |
LPS22HB_Error_et | LPS22HB_Get_PressureOffsetValue (void *handle, int16_t *pressoffset) |
Get the reference pressure after soldering for computing differential pressure (hPA) | |
LPS22HB_Error_et | LPS22HB_Get_ReferencePressure (void *handle, int32_t *RefP) |
Get the Reference Pressure value It is a 24-bit data added to the sensor output measurement to detect a measured pressure beyond programmed limits. | |
LPS22HB_Error_et | LPS22HB_IsMeasurementCompleted (void *handle, uint8_t *Is_Measurement_Completed) |
Check if the single measurement has completed. | |
LPS22HB_Error_et | LPS22HB_Get_Measurement (void *handle, LPS22HB_MeasureTypeDef_st *Measurement_Value) |
Get the values of the last single measurement. | |
LPS22HB_Error_et | LPS22HB_Init (void *handle) |
Initialization function for LPS22HB. | |
LPS22HB_Error_et | LPS22HB_DeInit (void *handle) |
De initialization function for LPS22HB. | |
LPS22HB_Error_et | LPS22HB_Set_GenericConfig (void *handle, LPS22HB_ConfigTypeDef_st *pxLPS22HBInit) |
Set Generic Configuration. | |
LPS22HB_Error_et | LPS22HB_Get_GenericConfig (void *handle, LPS22HB_ConfigTypeDef_st *pxLPS22HBInit) |
Get Generic configuration. | |
LPS22HB_Error_et | LPS22HB_Set_InterruptConfig (void *handle, LPS22HB_InterruptTypeDef_st *pLPS22HBInt) |
Set Interrupt configuration. | |
LPS22HB_Error_et | LPS22HB_Get_InterruptConfig (void *handle, LPS22HB_InterruptTypeDef_st *pLPS22HBInt) |
LPS22HBGet_InterruptConfig. | |
LPS22HB_Error_et | LPS22HB_Set_FifoConfig (void *handle, LPS22HB_FIFOTypeDef_st *pLPS22HBFIFO) |
Set Fifo configuration. | |
LPS22HB_Error_et | LPS22HB_Get_FifoConfig (void *handle, LPS22HB_FIFOTypeDef_st *pLPS22HBFIFO) |
Get Fifo configuration. | |
void | LPS22HB_assert_failed (uint8_t *file, uint32_t line) |
Reports the name of the source file and the source line number where the assert_param error has occurred. |
Detailed Description
LPS22HB driver file.
- Version:
- V1.1
- Date:
- 10-August-2016
- Attention:
© COPYRIGHT(c) 2016 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 LPS22HB_driver.c.
Generated on Fri Jul 15 2022 04:42:55 by
