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_i2c.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/i2c.h"
+ Include dependency graph for baro_ms5611_i2c.c:

Go to the source code of this file.

Macros

#define MS5611_I2C_DEV   i2c2
 Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for I2C. More...
 

Functions

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 i2c_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
 

Macro Definition Documentation

#define MS5611_I2C_DEV   i2c2

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_i2c.c.

Referenced by baro_event(), and baro_periodic().

Function Documentation

void baro_init ( void  )

Definition at line 53 of file baro_ms5611_i2c.c.

References baro, BS_UNINITIALIZED, ms5611_status, MS5611_UNINIT, prom_cnt, and Baro::status.

Referenced by baro_event().

+ Here is the caller graph for this function:

static int8_t baro_ms5611_crc ( uint16_t prom)
static

Definition at line 35 of file baro_ms5611_i2c.c.

References crc.

Referenced by baro_event().

+ Here is the caller graph for this function:

Variable Documentation

struct Baro baro

Definition at line 27 of file baro_ms5611_i2c.c.

Referenced by baro_event(), and baro_init().

float fbaroms

Definition at line 33 of file baro_ms5611_i2c.c.

Referenced by baro_event(), and baro_ms5611_event().

float ftempms

Definition at line 33 of file baro_ms5611_i2c.c.

Referenced by baro_event(), and baro_ms5611_event().

uint16_t ms5611_c[PROM_NB]
uint32_t ms5611_d1

Definition at line 32 of file baro_ms5611_i2c.c.

Referenced by baro_event(), and baro_ms5611_event().

uint32_t ms5611_d2

Definition at line 32 of file baro_ms5611_i2c.c.

Referenced by baro_event(), and baro_ms5611_event().