bmp180

Library functions for the BMP180 pressure sensor.

Author Rob Jansen, Copyright © 2024..2025, all rights reserved.
Adapted-by
Compiler 2.5r9

Description

Library functions for the BMP180 pressure sensor. The main
             program has to setup the IIC communication using an IIC clock of 
             at most 3.4 MHz.


Sources

Bosch BMP180 Datasheet version 2.5, document BST-BMP180-DS000-09.


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Private

Functions

Private

API details

Global variables/contants

Procedures

  • bmp180_reset()

    Description: Reset the BMP180 device
    Parameters: 
     None
    
    

  • bmp180_init()

    Description: Initialize the BMP180 library
     The resoluton mode is set to BMP180_MODE_ULTRA_LOW_POWER.
    Parameters: 
     None
    Notes:
     The IIC interface must be initialized.
    
    

  • bmp180_set_mode(byte in mode)

    Description: Set the resolution mode
    Parameters: 
     mode - Resolution mode, see BMP180_MODE_xx.
    
    

Private

Functions

  • bmp180_get_pressure() return sdword

    Description: Get the current pressure
    Parameters: 
     None
    Returns:
     Pressure in Pascal (Pa)
    Notes:
     This is a blocking call. The delay is depending on the last selected 
     resolution mode and can be longer than 31 ms. See datasheet.
    
    

  • bmp180_get_mode() return byte

    Description: Get the current resolution mode
    Parameters: 
     None
    Returns:
     Resolution mode, see BMP180_MODE_xx.
    
    

  • bmp180_get_temperature() return sword

    Description: Get the current temperature
    Parameters: 
     None
    Returns:
     Temperature in 0.1 degrees Celcius
    Notes:
     This is a blocking call. The delay is depending on the last selected 
     resolution mode and is at least 4.5 ms. See datasheet. 
    
    

Private

Related samples

Here are the list of samples which use this library:

16f182516f1825_bmp180.jal