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

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 baro_ms5611_alt
 
bool_t baro_ms5611_enabled
 
bool_t baro_ms5611_valid
 
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 40 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 65 of file baro_ms5611_i2c.c.

References crc.

Referenced by baro_ms5611_event().

+ Here is the caller graph for this function:

void baro_ms5611_d1 ( void  )
void baro_ms5611_d2 ( void  )
void baro_ms5611_init ( void  )

Definition at line 83 of file baro_ms5611_i2c.c.

References baro_ms5611_enabled, BARO_MS5611_R, baro_ms5611_r, BARO_MS5611_SIGMA2, baro_ms5611_sigma2, baro_ms5611_valid, 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_ms5611_alt

Definition at line 59 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

bool_t baro_ms5611_enabled

Definition at line 60 of file baro_ms5611_i2c.c.

Referenced by alt_kalman(), and baro_ms5611_init().

float baro_ms5611_r

Definition at line 62 of file baro_ms5611_i2c.c.

Referenced by alt_kalman(), and baro_ms5611_init().

float baro_ms5611_sigma2

Definition at line 63 of file baro_ms5611_i2c.c.

Referenced by alt_kalman(), and baro_ms5611_init().

bool_t baro_ms5611_valid

Definition at line 61 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event(), and baro_ms5611_init().

float fbaroms

Definition at line 58 of file baro_ms5611_i2c.c.

float ftempms

Definition at line 58 of file baro_ms5611_i2c.c.

uint16_t ms5611_c[PROM_NB]

Definition at line 55 of file baro_ms5611_i2c.c.

uint32_t ms5611_d1

Definition at line 56 of file baro_ms5611_i2c.c.

uint32_t ms5611_d2

Definition at line 56 of file baro_ms5611_i2c.c.

uint8_t ms5611_status

Definition at line 54 of file baro_ms5611_i2c.c.

struct i2c_transaction ms5611_trans

Definition at line 53 of file baro_ms5611_i2c.c.

int32_t prom_cnt

Definition at line 57 of file baro_ms5611_i2c.c.