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

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

#include "modules/sensors/baro_ms5611_spi.h"
#include "math/pprz_isa.h"
#include "mcu_periph/sys_time.h"
#include "modules/core/abi.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
+ Include dependency graph for baro_ms5611_spi.c:

Go to the source code of this file.

Macros

#define MS5611_SPI_DEV   spi1
 
#define MS5611_SLAVE_IDX   SPI_SLAVE0
 

Functions

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

Variables

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

Detailed Description

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

Definition in file baro_ms5611_spi.c.

Macro Definition Documentation

◆ MS5611_SLAVE_IDX

#define MS5611_SLAVE_IDX   SPI_SLAVE0

Definition at line 44 of file baro_ms5611_spi.c.

◆ MS5611_SPI_DEV

#define MS5611_SPI_DEV   spi1

Definition at line 40 of file baro_ms5611_spi.c.

Function Documentation

◆ baro_ms5611_event()

◆ baro_ms5611_init()

void baro_ms5611_init ( void  )

◆ baro_ms5611_periodic_check()

void baro_ms5611_periodic_check ( void  )

Definition at line 70 of file baro_ms5611_spi.c.

References baro_ms5611, baro_ms5611_send_coeff(), 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 83 of file baro_ms5611_spi.c.

References baro_ms5611, 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 115 of file baro_ms5611_spi.c.

References baro_ms5611, Ms5611Data::c, Ms5611_Spi::data, DefaultChannel, DefaultDevice, 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

Definition at line 51 of file baro_ms5611_spi.c.

Referenced by baro_ms5611_event().

◆ baro_ms5611_alt_valid

bool baro_ms5611_alt_valid

Definition at line 52 of file baro_ms5611_spi.c.

Referenced by baro_ms5611_event(), and baro_ms5611_init().

◆ baro_ms5611_enabled

bool baro_ms5611_enabled

Definition at line 53 of file baro_ms5611_spi.c.

Referenced by baro_ms5611_init().

◆ baro_ms5611_r

float baro_ms5611_r

Definition at line 55 of file baro_ms5611_spi.c.

Referenced by baro_ms5611_init().

◆ baro_ms5611_sigma2

float baro_ms5611_sigma2

Definition at line 56 of file baro_ms5611_spi.c.

Referenced by baro_ms5611_init().

◆ fbaroms

float fbaroms

Definition at line 50 of file baro_ms5611_spi.c.

Referenced by baro_ms5611_event().

◆ ftempms

float ftempms

Definition at line 50 of file baro_ms5611_spi.c.