Library for supporting the Nucleo Sensor Shield.

Dependents:   Nucleo_Sensors_Demo m2x-temp_ethernet_demo m2x-MEMS_ACKme_Wifi_demo m2x_MEMS_Ublox_Cellular_demo ... more

Fork of Nucleo_Sensor_Shield by Daniel Griffin

Embed: (wiki syntax)

« Back to documentation index

LPS25H Class Reference

LPS25H Class Reference

Class representing a LPS25H sensor component. More...

#include <lps25h.h>

Public Member Functions

 LPS25H (DevI2C &i2c)
 Constructor.
void GetPressure (float *pfData)
 Read LPS25H output register, and calculate the pressure in mbar.
void ReadRawPressure (uint32_t *raw_press)
 Read LPS25H output register, and calculate the raw pressure.
void Init ()
 Set HTS221 Initialization.
uint8_t ReadID (void)
 Read ID address of HTS221.

Detailed Description

Class representing a LPS25H sensor component.

Definition at line 48 of file lps25h.h.


Constructor & Destructor Documentation

LPS25H ( DevI2C i2c )

Constructor.

Parameters:

Definition at line 54 of file lps25h.h.


Member Function Documentation

void GetPressure ( float *  pfData )

Read LPS25H output register, and calculate the pressure in mbar.

Parameters:
float*pressure. Pressure value in mbar.
Return values:
LPS25H_ERRORor LPS25H_OK.

Definition at line 50 of file lps25.cpp.

void Init (  )

Set HTS221 Initialization.

Parameters:
InitStruct,:it contains the configuration setting for the HTS221.
Return values:
None

Definition at line 122 of file lps25.cpp.

uint8_t ReadID ( void   )

Read ID address of HTS221.

Parameters:
DeviceID address
Return values:
IDname

Definition at line 104 of file lps25.cpp.

void ReadRawPressure ( uint32_t *  raw_press )

Read LPS25H output register, and calculate the raw pressure.

Parameters:
uint32_t,:raw_press. Pressure raw value.
Return values:
LPS25H_ERRORor LPS25H_OK.

Definition at line 74 of file lps25.cpp.