Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
baro_bmp280.c File Reference

Bosch BMP280 sensor interface. More...

#include "baro_bmp280.h"
#include "modules/core/abi.h"
#include "mcu_periph/sys_time.h"
#include "math/pprz_isa.h"
Include dependency graph for baro_bmp280.c:

Go to the source code of this file.

Macros

#define BMP280_USE_SPI   FALSE
#define BMP280_SLAVE_ADDR   BMP280_I2C_ADDR
 default slave address
#define BMP280_SLAVE_IDX   SPI_SLAVE0

Functions

void baro_bmp280_init (void)
void baro_bmp280_periodic (void)
void baro_bmp280_event (void)

Variables

float baro_alt = 0
float baro_temp = 0
float baro_press = 0
bool baro_alt_valid = 0
struct bmp280_t baro_bmp280

Detailed Description

Bosch BMP280 sensor interface.

This reads the values for pressure and temperature from the Bosch BMP280 sensor.

Definition in file baro_bmp280.c.

Macro Definition Documentation

◆ BMP280_SLAVE_ADDR

#define BMP280_SLAVE_ADDR   BMP280_I2C_ADDR

default slave address

Definition at line 45 of file baro_bmp280.c.

Referenced by baro_bmp280_init().

◆ BMP280_SLAVE_IDX

#define BMP280_SLAVE_IDX   SPI_SLAVE0

Definition at line 49 of file baro_bmp280.c.

Referenced by baro_bmp280_init().

◆ BMP280_USE_SPI

#define BMP280_USE_SPI   FALSE

Definition at line 38 of file baro_bmp280.c.

Function Documentation

◆ baro_bmp280_event()

void baro_bmp280_event ( void )

◆ baro_bmp280_init()

void baro_bmp280_init ( void )

Definition at line 62 of file baro_bmp280.c.

References baro_bmp280, BMP280_I2C, bmp280_init(), BMP280_SLAVE_ADDR, BMP280_SLAVE_IDX, and BMP280_SPI.

Here is the call graph for this function:

◆ baro_bmp280_periodic()

void baro_bmp280_periodic ( void )

Definition at line 76 of file baro_bmp280.c.

References baro_bmp280, and bmp280_periodic().

Here is the call graph for this function:

Variable Documentation

◆ baro_alt

float baro_alt = 0

Definition at line 53 of file baro_bmp280.c.

Referenced by baro_bmp280_event(), and ins_mekf_wind_update_baro().

◆ baro_alt_valid

bool baro_alt_valid = 0

Definition at line 56 of file baro_bmp280.c.

Referenced by baro_bmp280_event().

◆ baro_bmp280

struct bmp280_t baro_bmp280

Definition at line 59 of file baro_bmp280.c.

Referenced by baro_bmp280_event(), baro_bmp280_init(), and baro_bmp280_periodic().

◆ baro_press

float baro_press = 0

Definition at line 55 of file baro_bmp280.c.

Referenced by baro_bmp280_event().

◆ baro_temp

float baro_temp = 0

Definition at line 54 of file baro_bmp280.c.

Referenced by baro_bmp280_event().