Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_ms5611_spi.c File Reference
#include "subsystems/sensors/baro.h"
#include "peripherals/ms5611.h"
#include "led.h"
#include "std.h"
#include "mcu_periph/sys_time.h"
#include "mcu_periph/spi.h"
+ Include dependency graph for baro_ms5611_spi.c:

Go to the source code of this file.

Macros

#define MS5611_SPI_DEV   spi2
 Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for I2C. More...
 
#define MS5611_BUFFER_LENGTH   4
 

Functions

static void trans_cb_ms5611 (struct spi_transaction *trans)
 
static int8_t baro_ms5611_crc (uint16_t *prom)
 
void baro_init (void)
 
void baro_periodic (void)
 
void baro_event (void(*b_abs_handler)(void), void(*b_diff_handler)(void))
 

Variables

struct Baro baro
 
struct spi_transaction ms5611_trans
 
uint8_t ms5611_status
 
int32_t prom_cnt
 
uint16_t ms5611_c [PROM_NB]
 
uint32_t ms5611_d1
 
uint32_t ms5611_d2
 
float fbaroms
 
float ftempms
 
volatile uint8_t input_buf_ms5611 [MS5611_BUFFER_LENGTH]
 
volatile uint8_t output_buf_ms5611 [MS5611_BUFFER_LENGTH]
 

Macro Definition Documentation

#define MS5611_BUFFER_LENGTH   4

Definition at line 17 of file baro_ms5611_spi.c.

Referenced by baro_init().

#define MS5611_SPI_DEV   spi2

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

Edit by: Michal Podhradsky, micha.nosp@m.l.po.nosp@m.dhrad.nosp@m.sky@.nosp@m.aggie.nosp@m.mail.nosp@m..usu..nosp@m.edu Utah State University, http://aggieair.usu.edu/

Definition at line 15 of file baro_ms5611_spi.c.

Referenced by baro_event(), and baro_periodic().

Function Documentation

static int8_t baro_ms5611_crc ( uint16_t prom)
static

Definition at line 39 of file baro_ms5611_spi.c.

References crc.

Referenced by baro_event().

+ Here is the caller graph for this function:

static void trans_cb_ms5611 ( struct spi_transaction trans)
static

Definition at line 57 of file baro_ms5611_spi.c.

References LED_TOGGLE.

Referenced by baro_init().

+ Here is the caller graph for this function:

Variable Documentation

struct Baro baro

Definition at line 28 of file baro_ms5611_spi.c.

Referenced by baro_event(), and baro_init().

float fbaroms

Definition at line 34 of file baro_ms5611_spi.c.

Referenced by baro_event().

float ftempms

Definition at line 34 of file baro_ms5611_spi.c.

Referenced by baro_event().

volatile uint8_t input_buf_ms5611[MS5611_BUFFER_LENGTH]

Definition at line 35 of file baro_ms5611_spi.c.

Referenced by baro_init().

uint16_t ms5611_c[PROM_NB]

Definition at line 32 of file baro_ms5611_spi.c.

Referenced by baro_event(), and baro_periodic().

uint32_t ms5611_d1

Definition at line 33 of file baro_ms5611_spi.c.

Referenced by baro_event().

uint32_t ms5611_d2

Definition at line 33 of file baro_ms5611_spi.c.

Referenced by baro_event().

uint8_t ms5611_status

Definition at line 30 of file baro_ms5611_spi.c.

Referenced by baro_event(), baro_init(), and baro_periodic().

struct spi_transaction ms5611_trans

Definition at line 29 of file baro_ms5611_spi.c.

Referenced by baro_event(), baro_init(), and baro_periodic().

volatile uint8_t output_buf_ms5611[MS5611_BUFFER_LENGTH]

Definition at line 36 of file baro_ms5611_spi.c.

int32_t prom_cnt

Definition at line 31 of file baro_ms5611_spi.c.

Referenced by baro_event(), baro_init(), and baro_periodic().