Manuel Caballero / LPS25HB

Dependents:   GB9662

Embed: (wiki syntax)

« Back to documentation index

LPS25HB Class Reference

LPS25HB Class Reference

Example: More...

#include <LPS25HB.h>

Public Types

enum  LPS25HB_addresses_t { LPS25HB_ADDRESS_0 = ( 0b1011100 << 1U ), LPS25HB_ADDRESS_1 = ( 0b1011101 << 1U ) }
 

DEFAULT ADDRESSES.

More...
enum  LPS25HB_registers_t {
  LPS25HB_REF_P_XL = 0x08, LPS25HB_REF_P_L = 0x09, LPS25HB_REF_P_H = 0x0A, LPS25HB_WHO_AM_I = 0x0F,
  LPS25HB_RES_CONF = 0x10, LPS25HB_CTRL_REG1 = 0x20, LPS25HB_CTRL_REG2 = 0x21, LPS25HB_CTRL_REG3 = 0x22,
  LPS25HB_CTRL_REG4 = 0x23, LPS25HB_INTERRUPT_CFG = 0x24, LPS25HB_INT_SOURCE = 0x25, LPS25HB_STATUS_REG = 0x27,
  LPS25HB_PRESS_OUT_XL = 0x28, LPS25HB_PRESS_OUT_L = 0x29, LPS25HB_PRESS_OUT_H = 0x2A, LPS25HB_TEMP_OUT_L = 0x2B,
  LPS25HB_TEMP_OUT_H = 0x2C, LPS25HB_FIFO_CTRL = 0x2E, LPS25HB_FIFO_STATUS = 0x2F, LPS25HB_THS_P_L = 0x30,
  LPS25HB_THS_P_H = 0x31, LPS25HB_RPDS_L = 0x39, LPS25HB_RPDS_H = 0x3A
}
 

REGISTERS.

More...
enum  LPS25HB_rep_p_xl_t { REF_P_XL_MASK = 0xFF }
 

REF_P_XL REGISTER.

More...
enum  LPS25HB_rep_p_l_t { REF_P_L_MASK = 0xFF }
 

REF_P_L REGISTER.

More...
enum  LPS25HB_rep_p_h_t { REF_P_H_MASK = 0xFF }
 

REF_P_H REGISTER.

More...
enum  LPS25HB_who_am_i_t { WHO_AM_I_MASK = 0xFF, WHO_AM_I_VALUE = 0xBD }
 

WHO_AM_I REGISTER.

More...
enum  LPS25HB_res_conf_avgt_t {
  RES_CONF_AVGT_MASK = ( 0b11 << 2U ), RES_CONF_AVGT_8 = ( 0b00 << 2U ), RES_CONF_AVGT_16 = ( 0b01 << 2U ), RES_CONF_AVGT_32 = ( 0b10 << 2U ),
  RES_CONF_AVGT_64 = ( 0b11 << 2U )
}
 

RES_CONF REGISTER.

More...
enum  LPS25HB_res_conf_avgp_t {
  RES_CONF_AVGP_MASK = ( 0b11 << 0U ), RES_CONF_AVGP_8 = ( 0b00 << 0U ), RES_CONF_AVGP_32 = ( 0b01 << 0U ), RES_CONF_AVGP_128 = ( 0b10 << 0U ),
  RES_CONF_AVGP_512 = ( 0b11 << 0U )
}
enum  LPS25HB_ctrl_reg1_pd_t { CTRL_REG1_PD_MASK = ( 1U << 7U ), CTRL_REG1_PD_POWER_DOWN_MODE = ( 0U << 7U ), CTRL_REG1_PD_ACTIVE_MODE = ( 1U << 7U ) }
 

CTRL_REG1 REGISTER.

More...
enum  LPS25HB_ctrl_reg1_odr_t {
  CTRL_REG1_ODR_MASK = ( 0b111 << 4U ), CTRL_REG1_ODR_ONE_SHOT_MODE = ( 0b000 << 4U ), CTRL_REG1_ODR_1_HZ = ( 0b001 << 4U ), CTRL_REG1_ODR_7_HZ = ( 0b010 << 4U ),
  CTRL_REG1_ODR_12_5_HZ = ( 0b011 << 4U ), CTRL_REG1_ODR_25_HZ = ( 0b100 << 4U )
}
enum  LPS25HB_ctrl_reg1_diff_en_t { CTRL_REG1_DIFF_EN_MASK = ( 1U << 3U ), CTRL_REG1_DIFF_EN_DISABLED = ( 0U << 3U ), CTRL_REG1_DIFF_EN_ENABLED = ( 1U << 3U ) }
enum  LPS25HB_ctrl_reg1_bdu_t { CTRL_REG1_BDU_MASK = ( 1U << 2U ), CTRL_REG1_BDU_0 = ( 0U << 2U ), CTRL_REG1_BDU_1 = ( 1U << 2U ) }
enum  LPS25HB_ctrl_reg1_reset_az_t { CTRL_REG1_RESET_AZ_MASK = ( 1U << 1U ), CTRL_REG1_RESET_AZ_NORMAL_MODE = ( 0U << 1U ), CTRL_REG1_RESET_AZ_RESET_AUTOZERO_FUNCTION = ( 1U << 1U ) }
enum  LPS25HB_ctrl_reg1_sim_t { CTRL_REG1_SIM_MASK = ( 1U << 0U ), CTRL_REG1_SIM_4_WIRE_INTERFACE = ( 0U << 0U ), CTRL_REG1_SIM_3_WIRE_INTERFACE = ( 1U << 0U ) }
enum  LPS25HB_ctrl_reg2_boot_t { CTRL_REG2_BOOT_MASK = ( 1U << 7U ), CTRL_REG2_BOOT_NORMAL_MODE = ( 0U << 7U ), CTRL_REG2_BOOT_REBOOT_MODE = ( 1U << 7U ) }
 

CTRL_REG2 REGISTER.

More...
enum  LPS25HB_ctrl_reg2_fifo_en_t { CTRL_REG2_FIFO_EN_MASK = ( 1U << 6U ), CTRL_REG2_FIFO_EN_DISABLED = ( 0U << 6U ), CTRL_REG2_FIFO_EN_ENABLED = ( 1U << 6U ) }
enum  LPS25HB_ctrl_reg2_stop_on_fth_t { CTRL_REG2_STOP_ON_FTH_MASK = ( 1U << 5U ), CTRL_REG2_STOP_ON_FTH_DISABLED = ( 0U << 5U ), CTRL_REG2_STOP_ON_FTH_ENABLED = ( 1U << 5U ) }
enum  LPS25HB_ctrl_reg2_fifo_mean_dec_t { CTRL_REG2_FIFO_MEAN_DEC_MASK = ( 1U << 4U ), CTRL_REG2_FIFO_MEAN_DEC_DISABLED = ( 0U << 4U ), CTRL_REG2_FIFO_MEAN_DEC_ENABLED = ( 1U << 4U ) }
enum  LPS25HB_ctrl_reg2_i2c_dis_t { CTRL_REG2_I2C_DIS_MASK = ( 1U << 3U ), CTRL_REG2_I2C_DIS_ENABLED = ( 0U << 3U ), CTRL_REG2_I2C_DIS_DISABLED = ( 1U << 3U ) }
enum  LPS25HB_ctrl_reg2_swreset_t { CTRL_REG2_SWRESET_MASK = ( 1U << 2U ), CTRL_REG2_SWRESET_NORMAL_MODE = ( 0U << 2U ), CTRL_REG2_SWRESET_SW_RESET = ( 1U << 2U ) }
enum  LPS25HB_ctrl_reg2_autozero_t { CTRL_REG2_AUTOZERO_MASK = ( 1U << 1U ), CTRL_REG2_AUTOZERO_NORMAL_MODE = ( 0U << 1U ), CTRL_REG2_AUTOZERO_AUTOZERO_ENABLED = ( 1U << 1U ) }
enum  LPS25HB_ctrl_reg2_one_shot_t { CTRL_REG2_ONE_SHOT_MASK = ( 1U << 0U ), CTRL_REG2_ONE_SHOTL_IDLE_MODE = ( 0U << 0U ), CTRL_REG2_ONE_SHOT_NEW_DATASET = ( 1U << 0U ) }
enum  LPS25HB_ctrl_reg3_int_h_l_t { CTRL_REG3_INT_H_L_MASK = ( 1U << 7U ), CTRL_REG3_INT_H_L_ACTIVE_HIGH = ( 0U << 7U ), CTRL_REG3_INT_H_L_ACTIVE_LOW = ( 1U << 7U ) }
 

CTRL_REG3 REGISTER.

More...
enum  LPS25HB_ctrl_reg3_pp_od_t { CTRL_REG3_PP_OD_MASK = ( 1U << 6U ), CTRL_REG3_PP_OD_PUSH_PULL = ( 0U << 6U ), CTRL_REG3_PP_OD_OPEN_DRAIN = ( 1U << 6U ) }
enum  LPS25HB_ctrl_reg3_int_s2_t {
  CTRL_REG3_INT_S2_MASK = ( 0b11 << 0U ), CTRL_REG3_INT_S2_DATA_SIGNAL = ( 0b00 << 0U ), CTRL_REG3_INT_S2_PRESSURE_HIGH = ( 0b01 << 0U ), CTRL_REG3_INT_S2_PRESSURE_LOW = ( 0b10 << 0U ),
  CTRL_REG3_INT_S2_PRESSURE_LOW_OR_HIGH = ( 0b11 << 0U )
}
enum  LPS25HB_ctrl_reg4_f_empty_t { CTRL_REG4_F_EMPTY_MASK = ( 1U << 3U ), CTRL_REG4_F_EMPTY_DISABLED = ( 0U << 3U ), CTRL_REG4_F_EMPTY_ENABLED = ( 1U << 3U ) }
 

CTRL_REG4 REGISTER.

More...
enum  LPS25HB_ctrl_reg4_f_fth_t { CTRL_REG4_F_FTH_MASK = ( 1U << 2U ), CTRL_REG4_F_FTH_DISABLED = ( 0U << 2U ), CTRL_REG4_F_FTH_ENABLED = ( 1U << 2U ) }
enum  LPS25HB_ctrl_reg4_f_ovr_t { CTRL_REG4_F_OVR_MASK = ( 1U << 1U ), CTRL_REG4_F_OVR_DISABLED = ( 0U << 1U ), CTRL_REG4_F_OVR_ENABLED = ( 1U << 1U ) }
enum  LPS25HB_ctrl_reg4_drdy_t { CTRL_REG4_DRDY_MASK = ( 1U << 0U ), CTRL_REG4_DRDY_DISABLED = ( 0U << 0U ), CTRL_REG4_DRDY_ENABLED = ( 1U << 0U ) }
enum  LPS25HB_interrupt_cfg_lir_t { INTERRUPT_CFG_LIR_MASK = ( 1U << 2U ), INTERRUPT_CFG_LIR_NOT_LATCHED = ( 0U << 2U ), INTERRUPT_CFG_LIR_LATCHED = ( 1U << 2U ) }
 

INTERRUPT_CFG REGISTER.

More...
enum  LPS25HB_interrupt_cfg_pl_e_t { INTERRUPT_CFG_PL_E_MASK = ( 1U << 1U ), INTERRUPT_CFG_PL_E_DISABLED = ( 0U << 1U ), INTERRUPT_CFG_PL_E_ENABLED = ( 1U << 1U ) }
enum  LPS25HB_interrupt_cfg_ph_e_t { INTERRUPT_CFG_PH_E_MASK = ( 1U << 0U ), INTERRUPT_CFG_PH_E_DISABLED = ( 0U << 0U ), INTERRUPT_CFG_PH_E_ENABLED = ( 1U << 0U ) }
enum  LPS25HB_int_source_ia_t { INT_SOURCE_IA_MASK = ( 1U << 2U ), INT_SOURCE_IA_NO_INTERRUPT_GENERATED = ( 0U << 2U ), INT_SOURCE_IA_INTERRUPT_GENERATED = ( 1U << 2U ) }
 

INT_SOURCE REGISTER ( INT_SOURCE register is cleared by reading it )

More...
enum  LPS25HB_int_source_pl_t { INT_SOURCE_PL_MASK = ( 1U << 1U ), INT_SOURCE_PL_NO_INTERRUPT_GENERATED = ( 0U << 1U ), INT_SOURCE_PL_EVENT_OCCURRED = ( 1U << 1U ) }
enum  LPS25HB_int_source_ph_t { INT_SOURCE_PH_MASK = ( 1U << 0U ), INT_SOURCE_PH_NO_INTERRUPT_GENERATED = ( 0U << 0U ), INT_SOURCE_PH_EVENT_OCCURRED = ( 1U << 0U ) }
enum  LPS25HB_status_reg_p_or_t { STATUS_REG_P_OR_MASK = ( 1U << 5U ), STATUS_REG_P_OR_NO_DATA = ( 0U << 5U ), STATUS_REG_P_OR_NEW_DATA = ( 1U << 5U ) }
 

STATUS_REG REGISTER.

More...
enum  LPS25HB_status_reg_t_or_t { STATUS_REG_T_OR_MASK = ( 1U << 4U ), STATUS_REG_T_OR_NO_DATA = ( 0U << 4U ), STATUS_REG_T_OR_NEW_DATA = ( 1U << 4U ) }
enum  LPS25HB_status_reg_p_da_t { STATUS_REG_P_DA_MASK = ( 1U << 1U ), STATUS_REG_P_DA_NO_AVAILABLE = ( 0U << 1U ), STATUS_REG_P_DA_NEW_DATA = ( 1U << 1U ) }
enum  LPS25HB_status_reg_t_da_t { STATUS_REG_T_DA_MASK = ( 1U << 0U ), STATUS_REG_T_DA_NO_AVAILABLE = ( 0U << 0U ), STATUS_REG_T_DA_NEW_DATA = ( 1U << 0U ) }
enum  LPS25HB_fifo_ctrl_f_mode_t {
  FIFO_CTRL_F_MODE_MASK = ( 0b111 << 5U ), FIFO_CTRL_F_MODE_BYPASS_MODE = ( 0b000 << 5U ), FIFO_CTRL_F_MODE_FIFO_MODE = ( 0b001 << 5U ), FIFO_CTRL_F_MODE_STREAM_MOD = ( 0b010 << 5U ),
  FIFO_CTRL_F_MODE_STREAM_TO_FIFO_MODE = ( 0b011 << 5U ), FIFO_CTRL_F_MODE_BYPASS_TO_STREAM_MODE = ( 0b100 << 5U ), FIFO_CTRL_F_MODE_FIFO_MEAN_MODE = ( 0b110 << 5U ), FIFO_CTRL_F_MODE_BYPASS_TO_FIFO_MODE = ( 0b111 << 5U )
}
 

FIFO_CTRL REGISTER.

More...
enum  LPS25HB_fifo_ctrl_wtm_point_t {
  FIFO_CTRL_WTM_POINT_MASK = ( 0b11111 << 0U ), FIFO_CTRL_WTM_POINT_2_SAMPLE_MOV_AVG = ( 0b00001 << 0U ), FIFO_CTRL_WTM_POINT_4_SAMPLE_MOV_AVG = ( 0b00011 << 0U ), FIFO_CTRL_WTM_POINT_8_SAMPLE_MOV_AVG = ( 0b00111 << 0U ),
  FIFO_CTRL_WTM_POINT_16_SAMPLE_MOV_AVG = ( 0b01111 << 0U ), FIFO_CTRL_WTM_POINT_32_SAMPLE_MOV_AVG = ( 0b11111 << 0U )
}
enum  LPS25HB_fifo_status_fth_fifo_t { FIFO_STATUS_FTH_FIFO_MASK = ( 1U << 7U ), FIFO_STATUS_FTH_FIFO_0 = ( 0U << 7U ), FIFO_STATUS_FTH_FIFO_1 = ( 1U << 7U ) }
 

FIFO_STATUS REGISTER.

More...
enum  LPS25HB_fifo_status_ovr_t { FIFO_STATUS_OVR_MASK = ( 1U << 6U ), FIFO_STATUS_OVR_FIFO_NOT_FULL = ( 0U << 6U ), FIFO_STATUS_OVR_FIFO_FULL = ( 1U << 6U ) }
enum  LPS25HB_fifo_status_empty_fifo_t { FIFO_STATUS_EMPTY_FIFO_MASK = ( 1U << 5U ), FIFO_STATUS_EMPTY_FIFO_NOT_EMPTY = ( 0U << 5U ), FIFO_STATUS_EMPTY_FIFO_EMPTY = ( 1U << 5U ) }
enum  LPS25HB_fifo_status_fss_t { FIFO_STATUS_FSS_MASK = ( 0b11111 << 0U ) }
enum  LPS25HB_status_t { , I2C_SUCCESS = 0U }
 

INTERNAL CONSTANTS.

More...

Public Member Functions

 LPS25HB (PinName sda, PinName scl, uint32_t addr, uint32_t freq)
 Create an LPS25HB object connected to the specified I2C pins.
 ~LPS25HB ()
 Delete LPS25HB object.
LPS25HB_status_t LPS25HB_GetReferencePressure (LPS25HB_data_t *myREFL)
 It gets raw reference pressure.
LPS25HB_status_t LPS25HB_SetReferencePressure (LPS25HB_data_t myREFL)
 It sets raw reference pressure.
LPS25HB_status_t LPS25HB_GetDeviceID (LPS25HB_data_t *myID)
 It gets the device ID.
LPS25HB_status_t LPS25HB_SetTemperatureResolution (LPS25HB_data_t myAVGT)
 It sets temperature resolution.
LPS25HB_status_t LPS25HB_GetTemperatureResolution (LPS25HB_data_t *myAVGT)
 It gets temperature resolution.
LPS25HB_status_t LPS25HB_SetPressureResolution (LPS25HB_data_t myAVGP)
 It sets pressure resolution.
LPS25HB_status_t LPS25HB_GetPressureResolution (LPS25HB_data_t *myAVGP)
 It gets pressure resolution.
LPS25HB_status_t LPS25HB_SetPowerMode (LPS25HB_ctrl_reg1_pd_t myPD)
 It sets the power mode.
LPS25HB_status_t LPS25HB_SetOutputDataRate (LPS25HB_data_t myODR)
 It sets the output data rate.
LPS25HB_status_t LPS25HB_GetOutputDataRate (LPS25HB_data_t *myODR)
 It gets the output data rate.
LPS25HB_status_t LPS25HB_SetInterruptGeneration (LPS25HB_ctrl_reg1_diff_en_t myDIFF_EN)
 It sets the interrupt generation enable.
LPS25HB_status_t LPS25HB_SetBlockDataUpdate (LPS25HB_ctrl_reg1_bdu_t myBDU)
 It sets the block data update.
LPS25HB_status_t LPS25HB_SetResetAutozero (void)
 It sets the reset autozero function.
LPS25HB_status_t LPS25HB_GetResetAutozero (LPS25HB_data_t *myRESET_AZ)
 It gets the reset autozero function.
LPS25HB_status_t LPS25HB_SetRebootMemoryContent (void)
 It sets the reboot memory content.
LPS25HB_status_t LPS25HB_GetRebootMemoryContent (LPS25HB_data_t *myBOOT)
 It gets the reboot memory content.
LPS25HB_status_t LPS25HB_SetFIFOEnable (LPS25HB_data_t myFIFO_EN)
 It sets the FIFO enable/disable.
LPS25HB_status_t LPS25HB_GetFIFOEnable (LPS25HB_data_t *myFIFO_EN)
 It gets the FIFO enable/disable.
LPS25HB_status_t LPS25HB_SetFIFOMeanDec (LPS25HB_ctrl_reg2_fifo_mean_dec_t myFIFO_MEAN_DEC)
 It enables/disables the decimate the output pressure to 1Hz with FIFO Mean mode.
LPS25HB_status_t LPS25HB_SetSoftwareReset (void)
 It sets the software reset.
LPS25HB_status_t LPS25HB_GetSoftwareReset (LPS25HB_data_t *mySWRESET)
 It gets the software reset flag value.
LPS25HB_status_t LPS25HB_SetAutozero (LPS25HB_data_t myAUTOZERO)
 It sets the autozero enable.
LPS25HB_status_t LPS25HB_GetAutozero (LPS25HB_data_t *myAUTOZERO)
 It gets the autozero enable value.
LPS25HB_status_t LPS25HB_SetOneShot (void)
 It sets the one-shot mode.
LPS25HB_status_t LPS25HB_GetOneShot (LPS25HB_data_t *myONE_SHOT)
 It gets the one-shot mode flag.
LPS25HB_status_t LPS25HB_SetInterruptActiveMode (LPS25HB_ctrl_reg3_int_h_l_t myINT_H_L)
 It sets the interrupt active mode.
LPS25HB_status_t LPS25HB_SetDrainSelectionMode (LPS25HB_ctrl_reg3_pp_od_t myPP_OD)
 It sets the Push-pull/open drain selection on interrupt pads.
LPS25HB_status_t LPS25HB_SetDataSignalOnPin (LPS25HB_ctrl_reg3_int_s2_t myINT_S)
 It sets the Data signal on INT_DRDY pin control bits.
LPS25HB_status_t LPS25HB_SetINT_DRDY_Behaviour (LPS25HB_data_t myIntConfig)
 It sets the INT_DRDY behaviour.
LPS25HB_status_t LPS25HB_GetINT_DRDY_Behaviour (LPS25HB_data_t *myIntConfig)
 It gets the INT_DRDY behaviour.
LPS25HB_status_t LPS25HB_SetInterruptConfiguration (LPS25HB_data_t myIntConfig)
 It sets the interrupt configuration register.
LPS25HB_status_t LPS25HB_GetInterruptConfiguration (LPS25HB_data_t *myIntConfig)
 It gets the interrupt configuration register.
LPS25HB_status_t LPS25HB_GetInterruptSource (LPS25HB_data_t *myIntSource)
 It reads the interrupt source register.
LPS25HB_status_t LPS25HB_GetStatusRegister (LPS25HB_data_t *myStatusRegister)
 It reads the status register.
LPS25HB_status_t LPS25HB_GetRawPressure (LPS25HB_data_t *myRawPressure)
 It gets the raw pressure value.
LPS25HB_status_t LPS25HB_GetRawTemperature (LPS25HB_data_t *myRawTemperature)
 It gets the raw temperature value.
LPS25HB_status_t LPS25HB_GetFIFO_Mode (LPS25HB_data_t *myFIFOmode)
 It gets the FIFO mode selection.
LPS25HB_status_t LPS25HB_SetFIFO_Mode (LPS25HB_data_t myFIFOmode)
 It sets the FIFO mode selection.
LPS25HB_status_t LPS25HB_GetFIFO_Threshold (LPS25HB_data_t *myFIFOthreshold)
 It gets the FIFO threshold (watermark) level selection.
LPS25HB_status_t LPS25HB_SetFIFO_Threshold (LPS25HB_data_t myFIFOthreshold)
 It sets the FIFO threshold (watermark) level selection.
LPS25HB_status_t LPS25HB_GetFIFO_Status (LPS25HB_data_t *myFIFOstatus)
 It reads the FIFO status register.
LPS25HB_status_t LPS25HB_SetFIFO_ThresholdValue (LPS25HB_data_t myFIFOthresholdValue)
 It sets the FIFO threshold value.
LPS25HB_status_t LPS25HB_GetFIFO_ThresholdValue (LPS25HB_data_t *myFIFOthresholdValue)
 It gets the FIFO threshold value.
LPS25HB_status_t LPS25HB_SetPressureOffset (LPS25HB_data_t myPressureOffset)
 It sets the Pressure offset value.
LPS25HB_status_t LPS25HB_GetPressureOffset (LPS25HB_data_t *myPressureOffset)
 It gets the Pressure offset value.
LPS25HB_status_t LPS25HB_GetPressure (LPS25HB_data_t *myPressure)
 It gets the current pressure in mbar.
LPS25HB_status_t LPS25HB_GetTemperature (LPS25HB_data_t *myTemperature)
 It gets the current temperature in Celsius degrees.

Detailed Description

Example:

#include "mbed.h"
#include "LPS25HB.h"

LPS25HB myLPS25HB ( I2C_SDA, I2C_SCL, LPS25HB::LPS25HB_ADDRESS_1 , 400000 );     // I2C_SDA | I2C_SCL
Serial pc         ( USBTX, USBRX );                                             // tx, rx

DigitalOut  myled   ( LED1 );
Ticker      newAction;


//@brief Constants.


//@brief Variables.
volatile uint32_t myState;                                                      //   State that indicates when to perform a new sample    


//@brief   FUNCTION PROTOTYPES
void    changeDATA     ( void );


//@brief FUNCTION FOR APPLICATION MAIN ENTRY.
int main()
{
    LPS25HB::LPS25HB_status_t aux;
    LPS25HB::LPS25HB_data_t   myLPS25HB_Data;

    pc.baud ( 115200 );


    myled   =   1;
    wait(3);
    myled   =   0;

    // Perform a software reset  
    aux  =   myLPS25HB.LPS25HB_SetSoftwareReset ();

    do {
        aux  =   myLPS25HB.LPS25HB_GetSoftwareReset ( &myLPS25HB_Data );        // Dangerous!!! The uC may get stuck here...
        // [WORKAROUND] Insert a counter
    } while ( myLPS25HB_Data.swreset == LPS25HB::CTRL_REG2_SWRESET_SW_RESET  );

    // Reboot memory content  
    aux  =   myLPS25HB.LPS25HB_SetRebootMemoryContent ();

    do {
        aux  =   myLPS25HB.LPS25HB_GetRebootMemoryContent ( &myLPS25HB_Data );  // Dangerous!!! The uC may get stuck here...
        // [WORKAROUND] Insert a counter
    } while ( myLPS25HB_Data.boot == LPS25HB::CTRL_REG2_BOOT_REBOOT_MODE  );

    // Set device in lOW-POWER mode  
    aux  =   myLPS25HB.LPS25HB_SetPowerMode ( LPS25HB::CTRL_REG1_PD_POWER_DOWN_MODE  );

    // Get device ID  
    aux  =   myLPS25HB.LPS25HB_GetDeviceID ( &myLPS25HB_Data );
    pc.printf ( "Device ID: %x\r\n", myLPS25HB_Data.deviceID );

    // Set temperature resolution: 64 internal average 
    myLPS25HB_Data.avgt  =   LPS25HB::RES_CONF_AVGT_64 ;
    aux  =   myLPS25HB.LPS25HB_SetTemperatureResolution ( myLPS25HB_Data );

    // Set pressure resolution: 512 internal average 
    myLPS25HB_Data.avgp  =   LPS25HB::RES_CONF_AVGP_512 ;
    aux  =   myLPS25HB.LPS25HB_SetPressureResolution ( myLPS25HB_Data );

    // Set ODR: One-shot mode enabled  
    myLPS25HB_Data.odr   =   LPS25HB::CTRL_REG1_ODR_ONE_SHOT_MODE ;
    aux  =   myLPS25HB.LPS25HB_SetOutputDataRate ( myLPS25HB_Data );

    // Interrupt generation disabled  
    aux  =   myLPS25HB.LPS25HB_SetInterruptGeneration ( LPS25HB::CTRL_REG1_DIFF_EN_ENABLED  );

    // Block data update: output registers not updated until MSB and LSB have been read  
    aux  =   myLPS25HB.LPS25HB_SetBlockDataUpdate ( LPS25HB::CTRL_REG1_BDU_1  );

    // FIFO disabled 
    myLPS25HB_Data.fifo_en   =   LPS25HB::CTRL_REG2_FIFO_EN_DISABLED ;
    aux  =   myLPS25HB.LPS25HB_SetFIFOEnable ( myLPS25HB_Data );

    // Autozero: Normal mode 
    myLPS25HB_Data.autozero  =   LPS25HB::CTRL_REG2_AUTOZERO_NORMAL_MODE ;
    aux  =   myLPS25HB.LPS25HB_SetAutozero ( myLPS25HB_Data );

    // Set device in ACTIVE mode  
    aux  =   myLPS25HB.LPS25HB_SetPowerMode ( LPS25HB::CTRL_REG1_PD_ACTIVE_MODE  );


    myState  =   0UL;                                                           // Reset the variable
    newAction.attach( &changeDATA, 1U );                                        // the address of the function to be attached ( changeDATA ) and the interval ( 1s )


    // Let the callbacks take care of everything
    while(1) {
        sleep();

        if ( myState == 1UL ) {
            myled = 1U;

            // Trigger to get a new data value  
            aux  =   myLPS25HB.LPS25HB_SetOneShot ();

            // Wait until the conversion is done  
            do {
                aux  =   myLPS25HB.LPS25HB_GetOneShot ( &myLPS25HB_Data );
            } while( myLPS25HB_Data.one_shot == LPS25HB::CTRL_REG2_ONE_SHOT_NEW_DATASET  );                       // Dangerous!!! The uC may get stuck here...
            // [WORKAROUND] Insert a counter

            // Wait until there is a new data ( both pressure and temperature )  
            do {
                aux  =   myLPS25HB.LPS25HB_GetStatusRegister ( &myLPS25HB_Data );
            } while( ( myLPS25HB_Data.status_reg & ( LPS25HB::STATUS_REG_P_DA_MASK  | LPS25HB::STATUS_REG_T_DA_MASK  ) ) != ( LPS25HB::STATUS_REG_P_DA_NEW_DATA  | LPS25HB::STATUS_REG_T_DA_NEW_DATA  ) ); // Dangerous!!! The uC may get stuck here...
            // [WORKAROUND] Insert a counter

            // Get pressure  
            aux  =   myLPS25HB.LPS25HB_GetPressure ( &myLPS25HB_Data );

            // Get temperature 
            aux  =   myLPS25HB.LPS25HB_GetTemperature ( &myLPS25HB_Data );

            // Send data through the UART    
            pc.printf ( "T: %0.1f C, P: %0.1f mbar\r\n", myLPS25HB_Data.temperature, myLPS25HB_Data.pressure );


            // Reset the variables   
            myState  =   0UL;
            myled    =   0U;
        }
    }
}


// @brief       changeDATA ( void  )
//
// @details     It changes myState variable
//
// @param[in]    N/A
//
// @param[out]   N/A.
//
// @return       N/A.
//
// @author      Manuel Caballero
// @date        31/May/2019
// @version     31/May/2019   The ORIGIN
// @pre         N/A
// @warning     N/A.
void changeDATA ( void )
{
    myState  =   1UL;
}

Library for the LPS25HB MEMS pressure sensor: 260-1260 hPa absolute digital output barometer.

Definition at line 182 of file LPS25HB.h.


Member Enumeration Documentation

DEFAULT ADDRESSES.

Enumerator:
LPS25HB_ADDRESS_0 

I2C slave address byte, SDO/SA0 = GND

LPS25HB_ADDRESS_1 

I2C slave address byte, SDO/SA0 = VDD

Definition at line 188 of file LPS25HB.h.

Enumerator:
CTRL_REG1_BDU_MASK 

BDU mask

CTRL_REG1_BDU_0 

Continuous update [ Default ]

CTRL_REG1_BDU_1 

Not updated until MSB and LSB have been read

Definition at line 325 of file LPS25HB.h.

Enumerator:
CTRL_REG1_DIFF_EN_MASK 

DIFF_EN mask

CTRL_REG1_DIFF_EN_DISABLED 

Interrupt generation disabled [ Default ]

CTRL_REG1_DIFF_EN_ENABLED 

Interrupt generation enabled

Definition at line 315 of file LPS25HB.h.

Enumerator:
CTRL_REG1_ODR_MASK 

ODR mask

CTRL_REG1_ODR_ONE_SHOT_MODE 

One- shot mode enabled [ Default ]

CTRL_REG1_ODR_1_HZ 

ODR: 1 HZ

CTRL_REG1_ODR_7_HZ 

ODR: 7 HZ

CTRL_REG1_ODR_12_5_HZ 

ODR: 12.5 HZ

CTRL_REG1_ODR_25_HZ 

ODR: 25 HZ

Definition at line 302 of file LPS25HB.h.

CTRL_REG1 REGISTER.

Enumerator:
CTRL_REG1_PD_MASK 

PD mask

CTRL_REG1_PD_POWER_DOWN_MODE 

Power-down mode [ Default ]

CTRL_REG1_PD_ACTIVE_MODE 

Active mode

Definition at line 292 of file LPS25HB.h.

Enumerator:
CTRL_REG1_RESET_AZ_MASK 

RESET_AZ mask

CTRL_REG1_RESET_AZ_NORMAL_MODE 

Normal mode [ Default ]

CTRL_REG1_RESET_AZ_RESET_AUTOZERO_FUNCTION 

Reset Autozero function

Definition at line 335 of file LPS25HB.h.

Enumerator:
CTRL_REG1_SIM_MASK 

SIM mask

CTRL_REG1_SIM_4_WIRE_INTERFACE 

4-wire interface [ Default ]

CTRL_REG1_SIM_3_WIRE_INTERFACE 

3-wire interface

Definition at line 345 of file LPS25HB.h.

Enumerator:
CTRL_REG2_AUTOZERO_MASK 

AUTOZERO mask

CTRL_REG2_AUTOZERO_NORMAL_MODE 

Normal mode [ Default ]

CTRL_REG2_AUTOZERO_AUTOZERO_ENABLED 

Autozero enabled

Definition at line 418 of file LPS25HB.h.

CTRL_REG2 REGISTER.

Enumerator:
CTRL_REG2_BOOT_MASK 

BOOT mask

CTRL_REG2_BOOT_NORMAL_MODE 

Normal mode [ Default ]

CTRL_REG2_BOOT_REBOOT_MODE 

Reboot memory content

Definition at line 358 of file LPS25HB.h.

Enumerator:
CTRL_REG2_FIFO_EN_MASK 

FIFO_EN mask

CTRL_REG2_FIFO_EN_DISABLED 

Disable [ Default ]

CTRL_REG2_FIFO_EN_ENABLED 

Enabled

Definition at line 368 of file LPS25HB.h.

Enumerator:
CTRL_REG2_FIFO_MEAN_DEC_MASK 

FIFO_MEAN_DEC mask

CTRL_REG2_FIFO_MEAN_DEC_DISABLED 

Disable [ Default ]

CTRL_REG2_FIFO_MEAN_DEC_ENABLED 

Enabled

Definition at line 388 of file LPS25HB.h.

Enumerator:
CTRL_REG2_I2C_DIS_MASK 

I2C_DIS mask

CTRL_REG2_I2C_DIS_ENABLED 

Enabled [ Default ]

CTRL_REG2_I2C_DIS_DISABLED 

Disabled

Definition at line 398 of file LPS25HB.h.

Enumerator:
CTRL_REG2_ONE_SHOT_MASK 

ONE_SHOT mask

CTRL_REG2_ONE_SHOTL_IDLE_MODE 

Idle mode [ Default ]

CTRL_REG2_ONE_SHOT_NEW_DATASET 

A new dataset is acquired

Definition at line 428 of file LPS25HB.h.

Enumerator:
CTRL_REG2_STOP_ON_FTH_MASK 

STOP_ON_FTH mask

CTRL_REG2_STOP_ON_FTH_DISABLED 

Disable [ Default ]

CTRL_REG2_STOP_ON_FTH_ENABLED 

Enabled

Definition at line 378 of file LPS25HB.h.

Enumerator:
CTRL_REG2_SWRESET_MASK 

SWRESET mask

CTRL_REG2_SWRESET_NORMAL_MODE 

Normal mode [ Default ]

CTRL_REG2_SWRESET_SW_RESET 

Software reset

Definition at line 408 of file LPS25HB.h.

CTRL_REG3 REGISTER.

Enumerator:
CTRL_REG3_INT_H_L_MASK 

INT_H_L mask

CTRL_REG3_INT_H_L_ACTIVE_HIGH 

active high [ Default ]

CTRL_REG3_INT_H_L_ACTIVE_LOW 

active low

Definition at line 441 of file LPS25HB.h.

Enumerator:
CTRL_REG3_INT_S2_MASK 

INT_S2 mask

CTRL_REG3_INT_S2_DATA_SIGNAL 

Data signal [ Default ]

CTRL_REG3_INT_S2_PRESSURE_HIGH 

Pressure high (P_high)

CTRL_REG3_INT_S2_PRESSURE_LOW 

Pressure low (P_low)

CTRL_REG3_INT_S2_PRESSURE_LOW_OR_HIGH 

Pressure low OR high

Definition at line 461 of file LPS25HB.h.

Enumerator:
CTRL_REG3_PP_OD_MASK 

PP_OD mask

CTRL_REG3_PP_OD_PUSH_PULL 

push-pull [ Default ]

CTRL_REG3_PP_OD_OPEN_DRAIN 

open drain

Definition at line 451 of file LPS25HB.h.

Enumerator:
CTRL_REG4_DRDY_MASK 

DRDY mask

CTRL_REG4_DRDY_DISABLED 

Disabled [ Default ]

CTRL_REG4_DRDY_ENABLED 

Enabled

Definition at line 506 of file LPS25HB.h.

CTRL_REG4 REGISTER.

Enumerator:
CTRL_REG4_F_EMPTY_MASK 

F_EMPTY mask

CTRL_REG4_F_EMPTY_DISABLED 

Disabled [ Default ]

CTRL_REG4_F_EMPTY_ENABLED 

Enabled

Definition at line 476 of file LPS25HB.h.

Enumerator:
CTRL_REG4_F_FTH_MASK 

F_FTH mask

CTRL_REG4_F_FTH_DISABLED 

Disabled [ Default ]

CTRL_REG4_F_FTH_ENABLED 

Enabled

Definition at line 486 of file LPS25HB.h.

Enumerator:
CTRL_REG4_F_OVR_MASK 

F_OVR mask

CTRL_REG4_F_OVR_DISABLED 

Disabled [ Default ]

CTRL_REG4_F_OVR_ENABLED 

Enabled

Definition at line 496 of file LPS25HB.h.

FIFO_CTRL REGISTER.

Enumerator:
FIFO_CTRL_F_MODE_MASK 

F_MODE mask

FIFO_CTRL_F_MODE_BYPASS_MODE 

Bypass mode [ Default ]

FIFO_CTRL_F_MODE_FIFO_MODE 

FIDO mode

FIFO_CTRL_F_MODE_STREAM_MOD 

Stream mode

FIFO_CTRL_F_MODE_STREAM_TO_FIFO_MODE 

Stream-to-FIDO mode

FIFO_CTRL_F_MODE_BYPASS_TO_STREAM_MODE 

Bypass-to-Stream mode

FIFO_CTRL_F_MODE_FIFO_MEAN_MODE 

FIDO mean mode

FIFO_CTRL_F_MODE_BYPASS_TO_FIFO_MODE 

Bypass-to-FIDO mode

Definition at line 628 of file LPS25HB.h.

Enumerator:
FIFO_CTRL_WTM_POINT_MASK 

WTM_POINT mask

FIFO_CTRL_WTM_POINT_2_SAMPLE_MOV_AVG 

2-sample moving average [ Default ]

FIFO_CTRL_WTM_POINT_4_SAMPLE_MOV_AVG 

4-sample moving average

FIFO_CTRL_WTM_POINT_8_SAMPLE_MOV_AVG 

8-sample moving average

FIFO_CTRL_WTM_POINT_16_SAMPLE_MOV_AVG 

16-sample moving average

FIFO_CTRL_WTM_POINT_32_SAMPLE_MOV_AVG 

32-sample moving average

Definition at line 643 of file LPS25HB.h.

Enumerator:
FIFO_STATUS_EMPTY_FIFO_MASK 

EMPTY_FIFO mask

FIFO_STATUS_EMPTY_FIFO_NOT_EMPTY 

FIFO not empty

FIFO_STATUS_EMPTY_FIFO_EMPTY 

FIFO empty

Definition at line 679 of file LPS25HB.h.

Enumerator:
FIFO_STATUS_FSS_MASK 

FSS mask

Definition at line 689 of file LPS25HB.h.

FIFO_STATUS REGISTER.

Enumerator:
FIFO_STATUS_FTH_FIFO_MASK 

FTH_FIFO mask

FIFO_STATUS_FTH_FIFO_0 

FIFO filling is lower than FTH level

FIFO_STATUS_FTH_FIFO_1 

FIFO filling is equal or higher than FTH level

Definition at line 659 of file LPS25HB.h.

Enumerator:
FIFO_STATUS_OVR_MASK 

OVR mask

FIFO_STATUS_OVR_FIFO_NOT_FULL 

FIFO not full

FIFO_STATUS_OVR_FIFO_FULL 

FIFO is full and at least one sample in the FIFO has been overwritten

Definition at line 669 of file LPS25HB.h.

INT_SOURCE REGISTER ( INT_SOURCE register is cleared by reading it )

Enumerator:
INT_SOURCE_IA_MASK 

IA mask

INT_SOURCE_IA_NO_INTERRUPT_GENERATED 

No interrupt has been generated

INT_SOURCE_IA_INTERRUPT_GENERATED 

One/more interrupt events have been generated

Definition at line 552 of file LPS25HB.h.

Enumerator:
INT_SOURCE_PH_MASK 

PH mask

INT_SOURCE_PH_NO_INTERRUPT_GENERATED 

No interrupt has been generated

INT_SOURCE_PH_EVENT_OCCURRED 

High differential pressure event has occurred

Definition at line 572 of file LPS25HB.h.

Enumerator:
INT_SOURCE_PL_MASK 

PL mask

INT_SOURCE_PL_NO_INTERRUPT_GENERATED 

No interrupt has been generated

INT_SOURCE_PL_EVENT_OCCURRED 

Low differential pressure event has occurred

Definition at line 562 of file LPS25HB.h.

INTERRUPT_CFG REGISTER.

Enumerator:
INTERRUPT_CFG_LIR_MASK 

LIR mask

INTERRUPT_CFG_LIR_NOT_LATCHED 

Interrupt request not latched [ Default ]

INTERRUPT_CFG_LIR_LATCHED 

Interrupt request latched

Definition at line 519 of file LPS25HB.h.

Enumerator:
INTERRUPT_CFG_PH_E_MASK 

PH_E mask

INTERRUPT_CFG_PH_E_DISABLED 

Disable interrupt request [ Default ]

INTERRUPT_CFG_PH_E_ENABLED 

enable interrupt request on measured differential pressure value higher than preset threshold

Definition at line 539 of file LPS25HB.h.

Enumerator:
INTERRUPT_CFG_PL_E_MASK 

PL_E mask

INTERRUPT_CFG_PL_E_DISABLED 

Disable interrupt request [ Default ]

INTERRUPT_CFG_PL_E_ENABLED 

Enable interrupt request on measured differential pressure value lower than preset threshold

Definition at line 529 of file LPS25HB.h.

REGISTERS.

Enumerator:
LPS25HB_REF_P_XL 

Reference pressure registers

LPS25HB_REF_P_L 

Reference pressure registers

LPS25HB_REF_P_H 

Reference pressure registers

LPS25HB_WHO_AM_I 

Who am I register

LPS25HB_RES_CONF 

Resolution register

LPS25HB_CTRL_REG1 

Control registers

LPS25HB_CTRL_REG2 

Control registers

LPS25HB_CTRL_REG3 

Control registers

LPS25HB_CTRL_REG4 

Control registers

LPS25HB_INTERRUPT_CFG 

Interrupt registers

LPS25HB_INT_SOURCE 

Interrupt registers

LPS25HB_STATUS_REG 

Status register

LPS25HB_PRESS_OUT_XL 

Pressure output register

LPS25HB_PRESS_OUT_L 

Pressure output register

LPS25HB_PRESS_OUT_H 

Pressure output register

LPS25HB_TEMP_OUT_L 

Temperature output registers

LPS25HB_TEMP_OUT_H 

Temperature output registers

LPS25HB_FIFO_CTRL 

FIFO configure registers

LPS25HB_FIFO_STATUS 

FIFO configure registers

LPS25HB_THS_P_L 

Pressure threshold registers

LPS25HB_THS_P_H 

Pressure threshold registers

LPS25HB_RPDS_L 

Pressure offset registers

LPS25HB_RPDS_H 

Pressure offset registers

Definition at line 198 of file LPS25HB.h.

REF_P_H REGISTER.

Reference pressure (MSB data) ( Default: 0x00 )

Enumerator:
REF_P_H_MASK 

REF_P_H mask

Definition at line 245 of file LPS25HB.h.

REF_P_L REGISTER.

Reference pressure (middle part) ( Default: 0x00 )

Enumerator:
REF_P_L_MASK 

REF_P_L mask

Definition at line 237 of file LPS25HB.h.

REF_P_XL REGISTER.

Reference pressure (LSB data) ( Default: 0x00 )

Enumerator:
REF_P_XL_MASK 

REF_P_XL mask

Definition at line 229 of file LPS25HB.h.

Enumerator:
RES_CONF_AVGP_MASK 

AVGP mask

RES_CONF_AVGP_8 

AVGP Nr. internal average 8

RES_CONF_AVGP_32 

AVGP Nr. internal average 32

RES_CONF_AVGP_128 

AVGP Nr. internal average 128

RES_CONF_AVGP_512 

AVGP Nr. internal average 512 [ Default ]

Definition at line 277 of file LPS25HB.h.

RES_CONF REGISTER.

Enumerator:
RES_CONF_AVGT_MASK 

AVGT mask

RES_CONF_AVGT_8 

AVGT Nr. internal average 8

RES_CONF_AVGT_16 

AVGT Nr. internal average 16

RES_CONF_AVGT_32 

AVGT Nr. internal average 32

RES_CONF_AVGT_64 

AVGT Nr. internal average 64 [ Default ]

Definition at line 265 of file LPS25HB.h.

Enumerator:
STATUS_REG_P_DA_MASK 

P_DA mask

STATUS_REG_P_DA_NO_AVAILABLE 

new data for pressure is not yet available

STATUS_REG_P_DA_NEW_DATA 

new data for pressure is available

Definition at line 605 of file LPS25HB.h.

STATUS_REG REGISTER.

Enumerator:
STATUS_REG_P_OR_MASK 

P_OR mask

STATUS_REG_P_OR_NO_DATA 

no overrun has occurred

STATUS_REG_P_OR_NEW_DATA 

new data for pressure has overwritten the previous one

Definition at line 585 of file LPS25HB.h.

Enumerator:
STATUS_REG_T_DA_MASK 

T_DA mask

STATUS_REG_T_DA_NO_AVAILABLE 

new data for temperature is not yet available

STATUS_REG_T_DA_NEW_DATA 

new data for temperature is available

Definition at line 615 of file LPS25HB.h.

Enumerator:
STATUS_REG_T_OR_MASK 

T_OR mask

STATUS_REG_T_OR_NO_DATA 

no overrun has occurred

STATUS_REG_T_OR_NEW_DATA 

new data for temperature has overwritten the previous one

Definition at line 595 of file LPS25HB.h.

INTERNAL CONSTANTS.

Enumerator:
I2C_SUCCESS 

I2C communication was fine

Definition at line 759 of file LPS25HB.h.

WHO_AM_I REGISTER.

Enumerator:
WHO_AM_I_MASK 

WHO_AM_I mask

WHO_AM_I_VALUE 

WHO_AM_I: 0xBD

Definition at line 253 of file LPS25HB.h.


Constructor & Destructor Documentation

LPS25HB ( PinName  sda,
PinName  scl,
uint32_t  addr,
uint32_t  freq 
)

Create an LPS25HB object connected to the specified I2C pins.

LPS25HB.cpp.

Parameters:
sdaI2C data pin
sclI2C clock pin
addrI2C slave address
freqI2C frequency

MEMS pressure sensor: 260-1260 hPa absolute digital output barometer. Function file.

Returns:
N/A
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A
Precondition:
This code belongs to AqueronteBlog ( http://unbarquero.blogspot.com ).

Definition at line 20 of file LPS25HB.cpp.

~LPS25HB (  )

Delete LPS25HB object.

Definition at line 28 of file LPS25HB.cpp.


Member Function Documentation

LPS25HB::LPS25HB_status_t LPS25HB_GetAutozero ( LPS25HB_data_t *  myAUTOZERO )

It gets the autozero enable value.

LPS25HB_GetAutozero ( LPS25HB_data_t* )

It gets the software reset flag value.

Parameters:
[in]N/A.
[out]myAUTOZERO,:Autozero enable value.
Returns:
Status of LPS25HB_GetAutozero.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1081 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetDeviceID ( LPS25HB_data_t *  myID )

It gets the device ID.

LPS25HB_GetDeviceID ( LPS25HB_data_t* )

It gets the device ID.

Parameters:
[in]N/A.
[out]myID,:Device ID.
Returns:
Status of LPS25HB_GetDeviceID.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 149 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetFIFO_Mode ( LPS25HB_data_t *  myFIFOmode )

It gets the FIFO mode selection.

LPS25HB_GetFIFO_Mode ( LPS25HB_data_t* )

It gets the FIFO mode selection.

Parameters:
[in]N/A.
[out]myFIFOmode,:FIFO mode selection.
Returns:
Status of LPS25HB_GetFIFO_Mode.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1789 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetFIFO_Status ( LPS25HB_data_t *  myFIFOstatus )

It reads the FIFO status register.

LPS25HB_GetFIFO_Status ( LPS25HB_data_t* )

It reads the FIFO status register.

Parameters:
[in]N/A.
[out]myFIFOstatus,:FIFO threshold (watermark) level selection.
Returns:
Status of LPS25HB_GetFIFO_Status.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1928 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetFIFO_Threshold ( LPS25HB_data_t *  myFIFOthreshold )

It gets the FIFO threshold (watermark) level selection.

LPS25HB_GetFIFO_Threshold ( LPS25HB_data_t* )

It gets the FIFO threshold (watermark) level selection.

Parameters:
[in]N/A.
[out]myFIFOthreshold,:FIFO threshold (watermark) level selection.
Returns:
Status of LPS25HB_GetFIFO_Threshold.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1882 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetFIFO_ThresholdValue ( LPS25HB_data_t *  myFIFOthresholdValue )

It gets the FIFO threshold value.

LPS25HB_GetFIFO_ThresholdValue ( LPS25HB_data_t* )

It gets the FIFO threshold value.

Parameters:
[in]N/A.
[out]myFIFOthresholdValue,:Threshold value for pressure interrupt generation.
Returns:
Status of LPS25HB_GetFIFO_ThresholdValue.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
This function implemets auto-increment.
Warning:
N/A.

Definition at line 1974 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetFIFOEnable ( LPS25HB_data_t *  myFIFO_EN )

It gets the FIFO enable/disable.

LPS25HB_GetFIFOEnable ( LPS25HB_data_t* )

It gets the FIFO enable/disable.

Parameters:
[in]N/A.
[out]myFIFO_EN,:FIFO enable/disable.
Returns:
Status of LPS25HB_GetFIFOEnable.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 848 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetINT_DRDY_Behaviour ( LPS25HB_data_t *  myIntConfig )

It gets the INT_DRDY behaviour.

LPS25HB_GetINT_DRDY_Behaviour ( LPS25HB_data_t* )

It gets INT_DRDY behaviour.

Parameters:
[in]N/A
[out]myIntConfig,:Interrupt configuration parameters.
Returns:
Status of LPS25HB_GetINT_DRDY_Behaviour.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1408 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetInterruptConfiguration ( LPS25HB_data_t *  myIntConfig )

It gets the interrupt configuration register.

LPS25HB_GetInterruptConfiguration ( LPS25HB_data_t* )

It gets interrupt configuration parameters.

Parameters:
[in]N/A
[out]myIntConfig,:Interrupt configuration parameters.
Returns:
Status of LPS25HB_GetInterruptConfiguration.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1504 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetInterruptSource ( LPS25HB_data_t *  myIntSource )

It reads the interrupt source register.

LPS25HB_GetInterruptSource ( LPS25HB_data_t* )

It reads the interrupt source register.

Parameters:
[in]N/A.
[out]myIntSource,:Interrupt source.
Returns:
Status of LPS25HB_GetInterruptSource.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1552 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetOneShot ( LPS25HB_data_t *  myONE_SHOT )

It gets the one-shot mode flag.

LPS25HB_GetOneShot ( LPS25HB_data_t* )

It gets the one-shot mode flag.

Parameters:
[in]N/A.
[out]myONE_SHOT,:One-shot flag value.
Returns:
Status of LPS25HB_GetOneShot.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1174 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetOutputDataRate ( LPS25HB_data_t *  myODR )

It gets the output data rate.

LPS25HB_GetOutputDataRate ( LPS25HB_data_t* )

It gets the output data rate.

Parameters:
[in]N/A.
[out]myODR,:Output data rate.
Returns:
Status of LPS25HB_GetOutputDataRate.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 475 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetPressure ( LPS25HB_data_t *  myPressure )

It gets the current pressure in mbar.

LPS25HB_GetPressure ( LPS25HB_data_t* )

It gets the current pressure in mbar.

Parameters:
[in]N/A.
[out]myPressure,:Current pressure in mbar.
Returns:
Status of LPS25HB_GetPressure.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 2162 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetPressureOffset ( LPS25HB_data_t *  myPressureOffset )

It gets the Pressure offset value.

LPS25HB_GetPressureOffset ( LPS25HB_data_t* )

It gets the Pressure offset value.

Parameters:
[in]N/A.
[out]myPressureOffset,:Pressure offset.
Returns:
Status of LPS25HB_GetPressureOffset.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
This function implemets auto-increment.
Warning:
N/A.

Definition at line 2068 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetPressureResolution ( LPS25HB_data_t *  myAVGP )

It gets pressure resolution.

LPS25HB_GetPressureResolution ( LPS25HB_data_t* )

It gets pressure resolution.

Parameters:
[in]N/A.
[out]myAVGP,:Pressure resolution.
Returns:
Status of LPS25HB_GetPressureResolution.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 335 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetRawPressure ( LPS25HB_data_t *  myRawPressure )

It gets the raw pressure value.

LPS25HB_GetRawPressure ( LPS25HB_data_t* )

It gets the raw pressure.

Parameters:
[in]N/A.
[out]myRawPressure,:Raw pressure.
Returns:
Status of LPS25HB_GetRawPressure.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
This function uses auto-increment.
Warning:
N/A.

Definition at line 1644 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetRawTemperature ( LPS25HB_data_t *  myRawTemperature )

It gets the raw temperature value.

LPS25HB_GetRawTemperature ( LPS25HB_data_t* )

It gets the raw temperature.

Parameters:
[in]N/A.
[out]myRawTemperature,:Raw temperature.
Returns:
Status of LPS25HB_GetRawTemperature.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
This function uses auto-increment.
Warning:
N/A.

Definition at line 1694 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetRebootMemoryContent ( LPS25HB_data_t *  myBOOT )

It gets the reboot memory content.

LPS25HB_GetRebootMemoryContent ( LPS25HB_data_t* )

It gets the reboot memory content.

Parameters:
[in]N/A.
[out]myBOOT,:Reboot memory content value.
Returns:
Status of LPS25HB_GetRebootMemoryContent.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 755 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetReferencePressure ( LPS25HB_data_t *  myREFL )

It gets raw reference pressure.

LPS25HB_GetReferencePressure ( LPS25HB_data_t* )

It gets raw reference pressure.

Parameters:
[in]N/A.
[out]myREFL,:Raw reference pressure.
Returns:
Status of LPS25HB_GetReferencePressure.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
This function uses auto-increment to read more than one register in a raw.
Warning:
N/A.

Definition at line 53 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetResetAutozero ( LPS25HB_data_t *  myRESET_AZ )

It gets the reset autozero function.

LPS25HB_GetResetAutozero ( LPS25HB_data_t* )

It gets the reset autozero function.

Parameters:
[in]N/A.
[out]myRESET_AZ,:Reset autozero function value.
Returns:
Status of LPS25HB_GetResetAutozero.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 662 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetSoftwareReset ( LPS25HB_data_t *  mySWRESET )

It gets the software reset flag value.

LPS25HB_GetSoftwareReset ( LPS25HB_data_t* )

It gets the software reset flag value.

Parameters:
[in]N/A.
[out]mySWRESET,:Software reset flag value.
Returns:
Status of LPS25HB_GetSoftwareReset.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 988 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetStatusRegister ( LPS25HB_data_t *  myStatusRegister )

It reads the status register.

LPS25HB_GetStatusRegister ( LPS25HB_data_t* )

It reads the status register.

Parameters:
[in]N/A.
[out]myStatusRegister,:Status register.
Returns:
Status of LPS25HB_GetStatusRegister.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1598 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetTemperature ( LPS25HB_data_t *  myTemperature )

It gets the current temperature in Celsius degrees.

LPS25HB_GetTemperature ( LPS25HB_data_t* )

It gets the current temperature in Celsius degrees.

Parameters:
[in]N/A.
[out]myTemperature,:Current temperature in Celsius degrees.
Returns:
Status of LPS25HB_GetTemperature.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 2210 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_GetTemperatureResolution ( LPS25HB_data_t *  myAVGT )

It gets temperature resolution.

LPS25HB_GetTemperatureResolution ( LPS25HB_data_t* )

It gets temperature resolution.

Parameters:
[in]N/A.
[out]myAVGT,:Temperature resolution.
Returns:
Status of LPS25HB_GetTemperatureResolution.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 242 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetAutozero ( LPS25HB_data_t  myAUTOZERO )

It sets the autozero enable.

LPS25HB_SetAutozero ( LPS25HB_data_t )

It sets the autozero enable.

Parameters:
[in]myAUTOZERO,:Enable/disable autozero.
[out]N/A.
Returns:
Status of LPS25HB_SetAutozero.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1034 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetBlockDataUpdate ( LPS25HB_ctrl_reg1_bdu_t  myBDU )

It sets the block data update.

LPS25HB_SetBlockDataUpdate ( LPS25HB_ctrl_reg1_bdu_t )

It sets the block data update.

Parameters:
[in]myBDU,:Block data update.
[out]N/A.
Returns:
Status of LPS25HB_SetBlockDataUpdate.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 568 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetDataSignalOnPin ( LPS25HB_ctrl_reg3_int_s2_t  myINT_S )

It sets the Data signal on INT_DRDY pin control bits.

LPS25HB_SetDataSignalOnPin ( LPS25HB_ctrl_reg3_int_s2_t )

It sets the Data signal on INT_DRDY pin control bits.

Parameters:
[in]myINT_S,:Data signal on INT_DRDY pin control bits
[out]N/A.
Returns:
Status of LPS25HB_SetDataSignalOnPin.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1314 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetDrainSelectionMode ( LPS25HB_ctrl_reg3_pp_od_t  myPP_OD )

It sets the Push-pull/open drain selection on interrupt pads.

LPS25HB_SetDrainSelectionMode ( LPS25HB_ctrl_reg3_pp_od_t )

It sets the Push-pull/open drain selection on interrupt pads.

Parameters:
[in]myPP_OD,:Push-pull/open drain
[out]N/A.
Returns:
Status of LPS25HB_SetDrainSelectionMode.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1267 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetFIFO_Mode ( LPS25HB_data_t  myFIFOmode )

It sets the FIFO mode selection.

LPS25HB_SetFIFO_Mode ( LPS25HB_data_t )

It sets the FIFO mode selection.

Parameters:
[in]myFIFOmode,:FIFO mode selection.
[out]N/A.
Returns:
Status of LPS25HB_SetFIFO_Mode.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1742 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetFIFO_Threshold ( LPS25HB_data_t  myFIFOthreshold )

It sets the FIFO threshold (watermark) level selection.

LPS25HB_SetFIFO_Threshold ( LPS25HB_data_t )

It sets the FIFO threshold (watermark) level selection.

Parameters:
[in]myFIFOthreshold,:FIFO threshold (watermark) level selection.
[out]N/A.
Returns:
Status of LPS25HB_SetFIFO_Threshold.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1835 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetFIFO_ThresholdValue ( LPS25HB_data_t  myFIFOthresholdValue )

It sets the FIFO threshold value.

LPS25HB_SetFIFO_ThresholdValue ( LPS25HB_data_t* )

It sets the FIFO threshold value.

Parameters:
[in]myFIFOthresholdValue,:Threshold value for pressure interrupt generation.
[out]N/A.
Returns:
Status of LPS25HB_SetFIFO_ThresholdValue.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
This function implements auto-increment.
Warning:
N/A.

Definition at line 2022 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetFIFOEnable ( LPS25HB_data_t  myFIFO_EN )

It sets the FIFO enable/disable.

LPS25HB_SetFIFOEnable ( LPS25HB_data_t )

It sets the FIFO enable/disable.

Parameters:
[in]myFIFO_EN,:FIFO enable/disable.
[out]N/A.
Returns:
Status of LPS25HB_SetFIFOEnable.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 801 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetFIFOMeanDec ( LPS25HB_ctrl_reg2_fifo_mean_dec_t  myFIFO_MEAN_DEC )

It enables/disables the decimate the output pressure to 1Hz with FIFO Mean mode.

LPS25HB_SetFIFOMeanDec ( LPS25HB_ctrl_reg2_fifo_mean_dec_t )

It enables/disables the decimate the output pressure to 1Hz with FIFO Mean mode.

Parameters:
[in]myFIFO_MEAN_DEC,:It enables/disables the decimate the output pressure to 1Hz with FIFO Mean mode.
[out]N/A.
Returns:
Status of LPS25HB_SetFIFOMeanDec.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 894 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetINT_DRDY_Behaviour ( LPS25HB_data_t  myIntConfig )

It sets the INT_DRDY behaviour.

LPS25HB_SetINT_DRDY_Behaviour ( LPS25HB_data_t )

It sets the INT_DRDY behaviour.

Parameters:
[in]myIntConfig,:Interrupt configuration parameters.
[out]N/A.
Returns:
Status of LPS25HB_SetINT_DRDY_Behaviour.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1361 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetInterruptActiveMode ( LPS25HB_ctrl_reg3_int_h_l_t  myINT_H_L )

It sets the interrupt active mode.

LPS25HB_SetInterruptActiveMode ( LPS25HB_ctrl_reg3_int_h_l_t )

It sets the interrupt active mode.

Parameters:
[in]myINT_H_L,:Interrupt active high/low.
[out]N/A.
Returns:
Status of LPS25HB_SetInterruptActiveMode.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1220 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetInterruptConfiguration ( LPS25HB_data_t  myIntConfig )

It sets the interrupt configuration register.

LPS25HB_SetInterruptConfiguration ( LPS25HB_data_t )

It sets the interrupt configuration parameters.

Parameters:
[in]myIntConfig,:Interrupt configuration parameters.
[out]N/A.
Returns:
Status of LPS25HB_SetInterruptConfiguration.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1457 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetInterruptGeneration ( LPS25HB_ctrl_reg1_diff_en_t  myDIFF_EN )

It sets the interrupt generation enable.

LPS25HB_SetInterruptGeneration ( LPS25HB_ctrl_reg1_diff_en_t )

It sets the interrupt generation enable.

Parameters:
[in]myDIFF_EN,:Interrupt generation enabled/disabled.
[out]N/A.
Returns:
Status of LPS25HB_SetInterruptGeneration.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 521 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetOneShot ( void   )

It sets the one-shot mode.

LPS25HB_SetOneShot ( void )

It sets the one-shot mode.

Parameters:
[in]N/A.
[out]N/A.
Returns:
Status of LPS25HB_SetOneShot.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 1127 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetOutputDataRate ( LPS25HB_data_t  myODR )

It sets the output data rate.

LPS25HB_SetOutputDataRate ( LPS25HB_data_t )

It sets the output data rate.

Parameters:
[in]myODR,:Output data rate.
[out]N/A.
Returns:
Status of LPS25HB_SetOutputDataRate.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 428 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetPowerMode ( LPS25HB_ctrl_reg1_pd_t  myPD )

It sets the power mode.

LPS25HB_SetPowerMode ( LPS25HB_ctrl_reg1_pd_t )

It sets power mode.

Parameters:
[in]myPD,:Power mode: Power-down/Active mode.
[out]N/A.
Returns:
Status of LPS25HB_SetPowerMode.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 381 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetPressureOffset ( LPS25HB_data_t  myPressureOffset )

It sets the Pressure offset value.

LPS25HB_SetPressureOffset ( LPS25HB_data_t* )

It sets the Pressure offset value.

Parameters:
[in]myPressureOffset,:Pressure offset.
[out]N/A.
Returns:
Status of LPS25HB_SetPressureOffset.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
This function implements auto-increment.
Warning:
N/A.

Definition at line 2116 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetPressureResolution ( LPS25HB_data_t  myAVGP )

It sets pressure resolution.

LPS25HB_SetPressureResolution ( LPS25HB_data_t )

It sets pressure resolution.

Parameters:
[in]myAVGP,:Pressure resolution.
[out]N/A.
Returns:
Status of LPS25HB_SetPressureResolution.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 288 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetRebootMemoryContent ( void   )

It sets the reboot memory content.

LPS25HB_SetRebootMemoryContent ( void )

It sets the reboot memory content.

Parameters:
[in]N/A.
[out]N/A.
Returns:
Status of LPS25HB_SetRebootMemoryContent.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 708 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetReferencePressure ( LPS25HB_data_t  myREFL )

It sets raw reference pressure.

LPS25HB_SetReferencePressure ( LPS25HB_data_t )

It sets raw reference pressure.

Parameters:
[in]myREFL,:Raw reference pressure.
[out]N/A.
Returns:
Status of LPS25HB_SetReferencePressure.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
This function uses auto-increment to write more than one register in a raw.
Warning:
N/A.

Definition at line 103 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetResetAutozero ( void   )

It sets the reset autozero function.

LPS25HB_SetResetAutozero ( void )

It sets the reset autozero function.

Parameters:
[in]N/A.
[out]N/A.
Returns:
Status of LPS25HB_SetResetAutozero.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 615 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetSoftwareReset ( void   )

It sets the software reset.

LPS25HB_SetSoftwareReset ( void )

It sets the software reset.

Parameters:
[in]N/A.
[out]N/A.
Returns:
Status of LPS25HB_SetSoftwareReset.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 941 of file LPS25HB.cpp.

LPS25HB::LPS25HB_status_t LPS25HB_SetTemperatureResolution ( LPS25HB_data_t  myAVGT )

It sets temperature resolution.

LPS25HB_SetTemperatureResolution ( LPS25HB_data_t )

It sets temperature resolution.

Parameters:
[in]myAVGT,:Temperature resolution.
[out]N/A.
Returns:
Status of LPS25HB_SetTemperatureResolution.
Author:
Manuel Caballero
Date:
10/June/2019
Version:
10/June/2019 The ORIGIN
Precondition:
N/A.
Warning:
N/A.

Definition at line 195 of file LPS25HB.cpp.