Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bmp3_i2c.h File Reference

Sensor driver for BMP3 sensor via I2C. More...

+ Include dependency graph for bmp3_i2c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Bmp3_I2c
 

Functions

void bmp3_i2c_read_eeprom_calib (struct Bmp3_I2c *bmp)
 
void bmp3_i2c_init (struct Bmp3_I2c *bmp, struct i2c_periph *i2c_p, uint8_t addr)
 init function
 
void bmp3_i2c_periodic (struct Bmp3_I2c *bmp)
 Start new measurement if sensor ready.
 
void bmp3_i2c_event (struct Bmp3_I2c *bmp)
 

Detailed Description

Sensor driver for BMP3 sensor via I2C.

Modified for Paparazzi from SDP3 driver from BoshSensortec see https://github.com/BoschSensortec/BMP3-Sensor-API for original code and license

Definition in file bmp3_i2c.h.


Data Structure Documentation

◆ Bmp3_I2c

struct Bmp3_I2c

Definition at line 38 of file bmp3_i2c.h.

+ Collaboration diagram for Bmp3_I2c:
Data Fields
struct bmp3_reg_calib_data calib calibration data
volatile bool data_available data ready flag
struct i2c_periph * i2c_p
struct i2c_transaction i2c_trans
bool initialized config done flag
float pressure pressure in Pascal
struct bmp3_quantized_calib_data quant_calib quantized calibration data
uint32_t raw_pressure uncompensated pressure
uint32_t raw_temperature uncompensated temperature
enum Bmp3Status status state machine status
float temperature temperature in deg Celcius

Function Documentation

◆ bmp3_i2c_event()

void bmp3_i2c_event ( struct Bmp3_I2c bmp)
extern

Definition at line 125 of file bmp3_i2c.c.

References BMP3_ALL, BMP3_STATUS_CONFIGURE, BMP3_STATUS_GET_CALIB, BMP3_STATUS_READ_DATA, BMP3_STATUS_UNINIT, compensate_pressure(), compensate_temperature(), foo, I2CTransDone, I2CTransFailed, I2CTransSuccess, parse_calib_data(), and parse_sensor_data().

Referenced by baro_bmp3_event().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bmp3_i2c_init()

void bmp3_i2c_init ( struct Bmp3_I2c bmp,
struct i2c_periph i2c_p,
uint8_t  addr 
)
extern

init function

Definition at line 60 of file bmp3_i2c.c.

References BMP3_STATUS_UNINIT, foo, I2CTransDone, and i2c_periph::status.

Referenced by baro_bmp3_init().

+ Here is the caller graph for this function:

◆ bmp3_i2c_periodic()

◆ bmp3_i2c_read_eeprom_calib()

void bmp3_i2c_read_eeprom_calib ( struct Bmp3_I2c bmp)
extern