Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
baro_ms5611_i2c.c File Reference

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

#include "modules/sensors/baro_ms5611_i2c.h"
#include "mcu_periph/sys_time.h"
#include "mcu_periph/i2c.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#include "subsystems/nav.h"
+ Include dependency graph for baro_ms5611_i2c.c:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 
#define MS5611_I2C_DEV   i2c0
 
#define MS5611_SLAVE_ADDR   0xEE
 

Functions

static int8_t baro_ms5611_crc (uint16_t *prom)
 
void baro_ms5611_init (void)
 
void baro_ms5611_periodic (void)
 
void baro_ms5611_d1 (void)
 
void baro_ms5611_d2 (void)
 
void baro_ms5611_event (void)
 

Variables

struct i2c_transaction ms5611_trans
 
uint8_t ms5611_status
 
uint16_t ms5611_c [PROM_NB]
 
uint32_t ms5611_d1
 
uint32_t ms5611_d2
 
int32_t prom_cnt
 
float fbaroms
 
float ftempms
 
float tmp_float
 
float baro_alt
 
float baro_offset
 
float baro_altitude
 
float baro_temp
 
bool_t baro_offset_init
 
bool_t baro_ms5611_enabled
 
float baro_ms5611_r
 
float baro_ms5611_sigma2
 

Detailed Description

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

Definition in file baro_ms5611_i2c.c.

Macro Definition Documentation

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 41 of file baro_ms5611_i2c.c.

#define MS5611_I2C_DEV   i2c0
#define MS5611_SLAVE_ADDR   0xEE

Function Documentation

static int8_t baro_ms5611_crc ( uint16_t prom)
static

Definition at line 68 of file baro_ms5611_i2c.c.

References crc.

Referenced by baro_ms5611_event().

+ Here is the caller graph for this function:

void baro_ms5611_init ( void  )

Definition at line 86 of file baro_ms5611_i2c.c.

References baro_ms5611_enabled, BARO_MS5611_R, baro_ms5611_r, BARO_MS5611_SIGMA2, baro_ms5611_sigma2, baro_offset_init, FALSE, ms5611_status, MS5611_UNINIT, prom_cnt, and TRUE.

Referenced by baro_ms5611_event().

+ Here is the caller graph for this function:

Variable Documentation

float baro_alt

Definition at line 62 of file baro_ms5611_i2c.c.

Referenced by baro_init(), and baro_ms5611_event().

float baro_altitude

Definition at line 62 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

bool_t baro_ms5611_enabled

Definition at line 64 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_init().

float baro_ms5611_r

Definition at line 65 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_init().

float baro_ms5611_sigma2

Definition at line 66 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_init().

float baro_offset

Definition at line 62 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

bool_t baro_offset_init

Definition at line 63 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event(), and baro_ms5611_init().

float baro_temp

Definition at line 62 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

float fbaroms

Definition at line 62 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

float ftempms

Definition at line 62 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

uint16_t ms5611_c[PROM_NB]

Definition at line 59 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event(), and baro_ms5611_periodic().

uint32_t ms5611_d1

Definition at line 60 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

uint32_t ms5611_d2

Definition at line 60 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

struct i2c_transaction ms5611_trans
int32_t prom_cnt

Definition at line 61 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event(), baro_ms5611_init(), and baro_ms5611_periodic().

float tmp_float

Definition at line 62 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().