Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
baro_ms5611_spi.h File Reference

Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for SPI. More...

#include "std.h"
#include "peripherals/ms5611_spi.h"
+ Include dependency graph for baro_ms5611_spi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BARO_MS5611_DT   BARO_MS5611_READ_PERIOD
 new measurement with every baro_ms5611_read() call More...
 
#define BARO_MS5611_R   20
 
#define BARO_MS5611_SIGMA2   1
 

Functions

void baro_ms5611_init (void)
 
void baro_ms5611_read (void)
 trigger new measurement or initialize if needed More...
 
void baro_ms5611_periodic_check (void)
 
void baro_ms5611_event (void)
 
void baro_ms5611_send_coeff (void)
 

Variables

float baro_ms5611_r
 
float baro_ms5611_sigma2
 
float baro_ms5611_alt
 
bool baro_ms5611_alt_valid
 
bool baro_ms5611_enabled
 
struct Ms5611_Spi baro_ms5611
 

Detailed Description

Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for SPI.

Definition in file baro_ms5611_spi.h.

Macro Definition Documentation

◆ BARO_MS5611_DT

#define BARO_MS5611_DT   BARO_MS5611_READ_PERIOD

new measurement with every baro_ms5611_read() call

Definition at line 36 of file baro_ms5611_spi.h.

◆ BARO_MS5611_R

#define BARO_MS5611_R   20

Definition at line 37 of file baro_ms5611_spi.h.

◆ BARO_MS5611_SIGMA2

#define BARO_MS5611_SIGMA2   1

Definition at line 38 of file baro_ms5611_spi.h.

Function Documentation

◆ baro_ms5611_event()

◆ baro_ms5611_init()

◆ baro_ms5611_periodic_check()

void baro_ms5611_periodic_check ( void  )

Definition at line 77 of file baro_ms5611_i2c.c.

References baro_ms5611, baro_ms5611_send_coeff(), ms5611_i2c_periodic_check(), and ms5611_spi_periodic_check().

+ Here is the call graph for this function:

◆ baro_ms5611_read()

void baro_ms5611_read ( void  )

trigger new measurement or initialize if needed

Definition at line 89 of file baro_ms5611_i2c.c.

References baro_ms5611, ms5611_i2c_read(), ms5611_spi_read(), and sys_time::nb_sec.

+ Here is the call graph for this function:

◆ baro_ms5611_send_coeff()

void baro_ms5611_send_coeff ( void  )

Definition at line 121 of file baro_ms5611_i2c.c.

References baro_ms5611, Ms5611Data::c, Ms5611_I2c::data, Ms5611_Spi::data, DefaultChannel, DefaultDevice, Ms5611_I2c::initialized, and Ms5611_Spi::initialized.

Referenced by baro_ms5611_periodic_check().

+ Here is the caller graph for this function:

Variable Documentation

◆ baro_ms5611

◆ baro_ms5611_alt

float baro_ms5611_alt
extern

Definition at line 58 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

◆ baro_ms5611_alt_valid

bool baro_ms5611_alt_valid
extern

Definition at line 59 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event(), and baro_ms5611_init().

◆ baro_ms5611_enabled

bool baro_ms5611_enabled
extern

Definition at line 60 of file baro_ms5611_i2c.c.

Referenced by alt_kalman(), and baro_ms5611_init().

◆ baro_ms5611_r

float baro_ms5611_r
extern

Definition at line 62 of file baro_ms5611_i2c.c.

Referenced by alt_kalman(), and baro_ms5611_init().

◆ baro_ms5611_sigma2

float baro_ms5611_sigma2
extern

Definition at line 63 of file baro_ms5611_i2c.c.

Referenced by alt_kalman(), and baro_ms5611_init().