|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
BMP180 Driver. More...
#include "sarmfsw.h"#include "I2C_component.h"#include "I2C_peripheral.h"#include "BMP180_proc.h"#include "BMP180_ex.h"

Data Structures | |
| union | uBMP180_REG__OUT_MSB |
| Union for out_msb of BMP180. More... | |
| union | uBMP180_REG__OUT_LSB |
| Union for out_lsb of BMP180. More... | |
| union | uBMP180_REG__OUT_XLSB |
| Union for out_xlsb of BMP180. More... | |
| union | uBMP180_REG__MEAS_CTRL |
| Union for meas_ctrl of BMP180. More... | |
Macros | |
| #define | I2C_BMP180_NB 1U |
| Number of BMP180 peripherals. | |
| #define | BMP180_BASE_ADDR 0x77U |
| BMP180 Base address. | |
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. | |
BMP180 Driver.
BMP180: Digital pressure sensor
| #define BMP180_BASE_ADDR 0x77U |
BMP180 Base address.
| #define I2C_BMP180_NB 1U |
Number of BMP180 peripherals.
| enum BMP180_meas |
| enum BMP180_oversampling |
| enum BMP180_reg |
Register map enum of BMP180.
| FctERR BMP180_Init | ( | const uint8_t | idx, |
| I2C_HandleTypeDef *const | hi2c, | ||
| const uint16_t | devAddress ) |
Initialization for BMP180 peripheral.
| [in] | idx | - BMP180 index |
| [in] | hi2c | - pointer to BMP180 I2C instance |
| [in] | devAddress | - BMP180 device address |


| FctERR BMP180_Init_Single | ( | void | ) |
Initialization for BMP180 peripheral.

| FctERR BMP180_Read | ( | I2C_slave_t *const | pSlave, |
| uint8_t * | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Read function for BMP180.
| [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 |


| FctERR BMP180_Read_Word | ( | I2C_slave_t *const | pSlave, |
| uint16_t * | data, | ||
| const uint16_t | addr ) |
I2C Word Read function for BMP180.
| [in,out] | pSlave | - Pointer to I2C slave instance |
| [in,out] | data | - pointer to read to |
| [in] | addr | - Address to read from |


| 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.
| [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 |

