| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Classes | Macros | Enumerations | Functions | Variables
LPS25HB.h File Reference

This file contains definitions for the lps25hb.c firmware driver. More...

`#include <stdint.h>`

Go to the source code of this file.

## Classes

struct | PRESSURE_InitTypeDef
| PRESSURE init structure definition. More...
struct | PRESSURE_DrvExtTypeDef
| PRESSURE driver extended structure definition. More...
struct | PRESSURE_DrvTypeDef
| PRESSURE driver structure definition. More...

## Macros

#define | NULL (void *) 0
#define | LPS25HB_REF_P_XL_ADDR 0x08
| Reference pressure (LSB data) More...
#define | LPS25HB_REF_P_L_ADDR 0x09
| Reference pressure (middle part) More...
#define | LPS25HB_REF_P_H_ADDR 0x0A
| Reference pressure (MSB part) More...
#define | LPS25HB_WHO_AM_I_ADDR 0x0F
| Device identifier register. More...
#define | LPS25HB_RES_CONF_ADDR 0x10
| Pressure and temperature resolution mode register. More...
#define | LPS25HB_CTRL_REG1_ADDR 0x20
| Pressure sensor control register 1. More...
#define | LPS25HB_CTRL_REG2_ADDR 0x21
| Pressure sensor control register 2. More...
#define | LPS25HB_CTRL_REG3_ADDR 0x22
| Pressure sensor control register 3. More...
#define | LPS25HB_CTRL_REG4_ADDR 0x23
| Pressure sensor control register 4. More...
#define | LPS25HB_INT_CFG_REG_ADDR 0x24
| Interrupt configuration Register. More...
#define | LPS25HB_INT_SOURCE_REG_ADDR 0x25
| Interrupt source Register. More...
#define | LPS25HB_THS_P_LOW_REG_ADDR 0x30
| Threshold pressure (LSB) More...
#define | LPS25HB_THS_P_HIGH_REG_ADDR 0x31
| Threshold pressure (MSB) More...
#define | LPS25HB_STATUS_REG_ADDR 0x27
| Status Register. More...
#define | LPS25HB_PRESS_POUT_XL_ADDR 0x28
| Pressure data (LSB). More...
#define | LPS25HB_PRESS_OUT_L_ADDR 0x29
| Pressure data (Middle part). More...
#define | LPS25HB_PRESS_OUT_H_ADDR 0x2A
| Pressure data (MSB). More...
#define | LPS25HB_TEMP_OUT_L_ADDR 0x2B
| Temperature data (LSB). More...
#define | LPS25HB_TEMP_OUT_H_ADDR 0x2C
| Temperature data (MSB). More...
#define | LPS25HB_CTRL_FIFO_ADDR 0x2E
| FIFO control register. More...
#define | LPS25HB_STATUS_FIFO_ADDR 0x2F
| FIFO Status register. More...
#define | LPS25HB_RPDS_TRIM_L_ADDR 0x39
| Pressure offset register. More...
#define | LPS25HB_RPDS_TRIM_H_ADDR 0x3A
| Pressure offset register. More...
#define | LPS25HB_I2C_MULTIPLEBYTE_CMD ((uint8_t)0x80)
| Multiple Byte. Mask for enabling multiple byte read/write command. More...
#define | LPS25HB_ADDRESS_LOW 0x5C
| Device Address. More...
#define | LPS25HB_ADDRESS_HIGH 0x5B
#define | I_AM_LPS25HB ((uint8_t)0xBD)
| Device Identifier. Default value of the WHO_AM_I register. More...
#define | LPS25HB_MODE_POWERDOWN ((uint8_t)0x00)
#define | LPS25HB_MODE_ACTIVE ((uint8_t)0x80)
#define | LPS25HB_MODE_MASK ((uint8_t)0x80)
#define | LPS25HB_ODR_ONE_SHOT ((uint8_t)0x00)
#define | LPS25HB_ODR_1Hz ((uint8_t)0x10)
#define | LPS25HB_ODR_7Hz ((uint8_t)0x20)
#define | LPS25HB_ODR_12_5Hz ((uint8_t)0x30)
#define | LPS25HB_ODR_25Hz ((uint8_t)0x40)
#define | LPS25HB_ODR_MASK ((uint8_t)0x70)
#define | LPS25HB_DIFF_DISABLE ((uint8_t)0x00)
#define | LPS25HB_DIFF_ENABLE ((uint8_t)0x08)
#define | LPS25HB_DIFF_EN_MASK ((uint8_t)0x08)
#define | LPS25HB_BDU_CONT ((uint8_t)0x00)
#define | LPS25HB_BDU_READ ((uint8_t)0x04)
#define | LPS25HB_BDU_MASK ((uint8_t)0x04)
#define | LPS25HB_SPI_SIM_4W ((uint8_t)0x00)
#define | LPS25HB_SPI_SIM_3W ((uint8_t)0x01)
#define | LPS25HB_SPI_SIM_MASK ((uint8_t)0x01)
#define | LPS25HB_NORMAL_MODE ((uint8_t)0x00)
#define | LPS25HB_RESET_MEMORY ((uint8_t)0x80)
#define | LPS25HB_RESET_MEMORY_MASK ((uint8_t)0x80)
#define | LPS25HB_P_RES_AVG_8 ((uint8_t)0x00)
#define | LPS25HB_P_RES_AVG_32 ((uint8_t)0x01)
#define | LPS25HB_P_RES_AVG_128 ((uint8_t)0x02)
#define | LPS25HB_P_RES_AVG_512 ((uint8_t)0x03)
#define | LPS25HB_P_RES_MASK ((uint8_t)0x03)
#define | LPS25HB_T_RES_AVG_8 ((uint8_t)0x00)
#define | LPS25HB_T_RES_AVG_16 ((uint8_t)0x04)
#define | LPS25HB_T_RES_AVG_32 ((uint8_t)0x08)
#define | LPS25HB_T_RES_AVG_64 ((uint8_t)0x0C)
#define | LPS25HB_T_RES_MASK ((uint8_t)0x0C)
#define | LPS25HB_SA0_LOW ((uint8_t)0x00)
#define | LPS25HB_SA0_HIGH ((uint8_t)0x01)

## Enumerations

enum | PRESSURE_StatusTypeDef { PRESSURE_OK = 0, PRESSURE_ERROR = 1, PRESSURE_TIMEOUT = 2, PRESSURE_NOT_IMPLEMENTED = 3 }
| PRESSURE status enumerator definition. More...
enum | PRESSURE_ComponentTypeDef { PRESSURE_NONE_COMPONENT = 0, PRESSURE_LPS25H_COMPONENT = 1, PRESSURE_LPS25HB_DIL24_COMPONENT = 2 }
| PRESSURE component id enumerator definition. More...

## Functions

PRESSURE_StatusTypeDef | LPS25HB_IO_Init (void)
PRESSURE_StatusTypeDef | LPS25HB_IO_Write (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint16_t NumByteToWrite)
PRESSURE_StatusTypeDef | LPS25HB_IO_Read (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint16_t NumByteToRead)
PRESSURE_StatusTypeDef | LPS25HB_IO_ITConfig (void)

## Variables

PRESSURE_DrvTypeDef | LPS25HBDrv

## Detailed Description

This file contains definitions for the lps25hb.c firmware driver.

Author
  MEMS Application Team

Version
  V1.2.0

Date
  28-January-2015

Attention

##
© COPYRIGHT(c) 2015 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 LPS25HB.h.