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.
LPS25HB Class Reference
Example: More...
#include <LPS25HB.h>
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
| enum LPS25HB_addresses_t |
FIFO_CTRL REGISTER.
- Enumerator:
- Enumerator:
| enum LPS25HB_registers_t |
REGISTERS.
- Enumerator:
| enum LPS25HB_rep_p_h_t |
| enum LPS25HB_rep_p_l_t |
| enum LPS25HB_rep_p_xl_t |
| enum LPS25HB_status_t |
| enum LPS25HB_who_am_i_t |
Constructor & Destructor Documentation
| LPS25HB | ( | PinName | sda, |
| PinName | scl, | ||
| uint32_t | addr, | ||
| uint32_t | freq | ||
| ) |
Create an LPS25HB object connected to the specified I2C pins.
- Parameters:
-
sda I2C data pin scl I2C clock pin addr I2C slave address freq I2C frequency
MEMS pressure sensor: 260-1260 hPa absolute digital output barometer. Function file.
- Returns:
- N/A
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Date:
- 10/June/2019
- Version:
- 10/June/2019 The ORIGIN
- Precondition:
- N/A.
- Warning:
- N/A.
Definition at line 195 of file LPS25HB.cpp.
Generated on Thu Jul 14 2022 05:31:07 by
1.7.2