I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
BMP180.c File Reference

BMP180 Driver. More...

#include "BMP180.h"
Include dependency graph for BMP180.c:

Functions

FctERR BMP180_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress)
 Initialization for BMP180 peripheral.
 
FctERR BMP180_Init_Single (void)
 Initialization for BMP180 peripheral.
 
FctERR BMP180_Write (I2C_slave_t *const pSlave, const uint8_t *data, const uint16_t addr, const uint16_t nb)
 I2C Write function for BMP180.
 
FctERR BMP180_Read (I2C_slave_t *const pSlave, uint8_t *data, const uint16_t addr, const uint16_t nb)
 I2C Read function for BMP180.
 
FctERR BMP180_Read_Word (I2C_slave_t *const pSlave, uint16_t *data, const uint16_t addr)
 I2C Word Read function for BMP180.
 

Detailed Description

BMP180 Driver.

Author
SMFSW

BMP180: Digital pressure sensor

Function Documentation

◆ BMP180_Init()

FctERR BMP180_Init ( const uint8_t idx,
I2C_HandleTypeDef *const hi2c,
const uint16_t devAddress )

Initialization for BMP180 peripheral.

Parameters
[in]idx- BMP180 index
[in]hi2c- pointer to BMP180 I2C instance
[in]devAddress- BMP180 device address
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BMP180_Init_Single()

FctERR BMP180_Init_Single ( void )

Initialization for BMP180 peripheral.

Warning
In case multiple devices (defined by I2C_BMP180_NB > 1), you shall use BMP180_Init instead
Returns
FctERR - error code
Here is the call graph for this function:

◆ BMP180_Read()

FctERR BMP180_Read ( I2C_slave_t *const pSlave,
uint8_t * data,
const uint16_t addr,
const uint16_t nb )

I2C Read function for BMP180.

Parameters
[in,out]pSlave- Pointer to I2C slave instance
[in,out]data- pointer to read to
[in]addr- Address to read from
[in]nb- Number of bytes to read
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BMP180_Read_Word()

FctERR BMP180_Read_Word ( I2C_slave_t *const pSlave,
uint16_t * data,
const uint16_t addr )

I2C Word Read function for BMP180.

Parameters
[in,out]pSlave- Pointer to I2C slave instance
[in,out]data- pointer to read to
[in]addr- Address to read from
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BMP180_Write()

FctERR BMP180_Write ( I2C_slave_t *const pSlave,
const uint8_t * data,
const uint16_t addr,
const uint16_t nb )

I2C Write function for BMP180.

Parameters
[in,out]pSlave- Pointer to I2C slave instance
[in]data- pointer to write from
[in]addr- Address to write to
[in]nb- Number of bytes to write
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function: