Robotique FIP / Mbed 2 deprecated FIP_REV1

Dependencies:   HC_SR04_Ultrasonic_Library Servo mbed

Fork of FIP_REV1 by Robotique FIP

Embed: (wiki syntax)

« Back to documentation index

LPS25H_Exported_Functions

LPS25H_Exported_Functions
[Output Data Rate selection CTRL_REG1]

Functions

void LPS25H_Init (PRESSURE_InitTypeDef *LPS25H_Init)
 Set LPS25H Initialization.
uint8_t LPS25H_ReadID (void)
 Read ID address of LPS25H.
void LPS25H_RebootCmd (void)
 Reboot memory content of LPS25H.
void LPS25H_GetPressure (float *pfData)
 Read LPS25H output register, and calculate the pressure in mbar.
void LPS25H_GetTemperature (float *pfData)
 Read LPS25H output register, and calculate the temperature.
void LPS25H_PowerOff (void)
 Enter the shutdown mode for LPS25H.
void LPS25H_SlaveAddrRemap (uint8_t)
 Set the slave address according to SA0 bit.

Function Documentation

void LPS25H_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 243 of file lps25h.c.

void LPS25H_GetTemperature ( float *  pfData )

Read LPS25H output register, and calculate the temperature.

Parameters:
float*temperature : temperature value..
Return values:
LPS25H_ERRORor LPS25H_OK.

Definition at line 281 of file lps25h.c.

void LPS25H_Init ( PRESSURE_InitTypeDef LPS25H_Init )

Set LPS25H Initialization.

Parameters:
InitStruct,:it contains the configuration setting for the LPS25H.
Return values:
ErrorCode (PressureError_Enum)

Definition at line 133 of file lps25h.c.

void LPS25H_PowerOff ( void   )

Enter the shutdown mode for LPS25H.

Parameters:
None
Return values:
LPS25H_ERRORor LPS25H_OK

Definition at line 318 of file lps25h.c.

uint8_t LPS25H_ReadID ( void   )

Read ID address of LPS25H.

Parameters:
DeviceID address
Return values:
IDname

Definition at line 180 of file lps25h.c.

void LPS25H_RebootCmd ( void   )

Reboot memory content of LPS25H.

Parameters:
None
Return values:
None

Definition at line 196 of file lps25h.c.

void LPS25H_SlaveAddrRemap ( uint8_t  SA0_Bit_Status )

Set the slave address according to SA0 bit.

Parameters:
SA0_Bit_Status,:LPS25H_SA0_LOW or LPS25H_SA0_HIGH
Return values:
None

Definition at line 340 of file lps25h.c.