XDK API  3.6.0
Documentation
Functions | Variables
bmp180.c File Reference
#include "bmp180.h"
+ Include dependency graph for bmp180.c:

Functions

BMP180_RETURN_FUNCTION_TYPE bmp180_get_calib_param (void)
 this function used for read the calibration parameter from the register More...
 
s32 bmp180_get_pressure (u32 v_uncomp_pressure_u32)
 this API is used to calculate the true pressure using the uncompensated pressure(up) More...
 
s16 bmp180_get_temperature (u32 v_uncomp_temperature_u32)
 this API is used to calculate the true temperature using the uncompensated temperature(ut) More...
 
u32 bmp180_get_uncomp_pressure (void)
 this API is used to read the uncompensated pressure(up) from the register More...
 
u16 bmp180_get_uncomp_temperature (void)
 this API is used to read the uncompensated temperature(ut) from the register More...
 
BMP180_RETURN_FUNCTION_TYPE bmp180_init (struct bmp180_t *bmp180)
 This function is used for initialize the bus read and bus write functions and assign the chip id and I2C address of the BMP180 chip id is read in the register 0xD0 bit from 0 to 7. More...
 

Variables

static struct bmp180_tp_bmp180
 

Function Documentation

BMP180_RETURN_FUNCTION_TYPE bmp180_get_calib_param ( void  )
Parameter MSB LSB bit
AC1 0xAA 0xAB 0 to 7
AC2 0xAC 0xAD 0 to 7
AC3 0xAE 0xAF 0 to 7
AC4 0xB0 0xB1 0 to 7
AC5 0xB2 0xB3 0 to 7
AC6 0xB4 0xB5 0 to 7
B1 0xB6 0xB7 0 to 7
B2 0xB8 0xB9 0 to 7
MB 0xBA 0xBB 0 to 7
MC 0xBC 0xBD 0 to 7
MD 0xBE 0xBF 0 to 7
Returns
results of bus communication function
Return values
0-> Success
-1-> Error

+ Here is the caller graph for this function:

s32 bmp180_get_pressure ( u32  v_uncomp_pressure_u32)
Note
For reading the up data refer : bmp180_read_up()
Parameters
v_uncomp_pressure_u32the value of uncompensated pressure
Returns
Return the value of pressure in steps of 1.0 Pa
s16 bmp180_get_temperature ( u32  v_uncomp_temperature_u32)
Note
For reading the ut data refer : bmp180_read_ut()
Parameters
v_uncomp_temperature_u32the value of uncompensated temperature
Returns
Return the temperature in steps of 0.1 deg Celsius
u32 bmp180_get_uncomp_pressure ( void  )
Note
0xF6(MSB) bit from 0 to 7
0xF7(LSB) bit from 0 to 7
0xF8(LSB) bit from 3 to 7
Returns
results of bus communication function
Return values
0-> Success
-1-> Error
u16 bmp180_get_uncomp_temperature ( void  )
Note
0xF6(MSB) bit from 0 to 7
0xF7(LSB) bit from 0 to 7
Returns
results of bus communication function
Return values
0-> Success
-1-> Error
BMP180_RETURN_FUNCTION_TYPE bmp180_init ( struct bmp180_t bmp180)
Parameters
bmp180structure pointer.
Note
While changing the parameter of the bmp180_t
consider the following point: Changing the reference value of the parameter will changes the local copy or local reference make sure your changes will not affect the reference value of the parameter (Better case don't change the reference value of the parameter)
Returns
results of bus communication function
Return values
0-> Success
-1-> Error

+ Here is the call graph for this function:

Variable Documentation

struct bmp180_t* p_bmp180
static

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:43 by doxygen 1.8.8