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.h File Reference
#include "std.h"
+ Include dependency graph for baro_ms5611_i2c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MS5611_SOFT_RESET   0x1E
 
#define MS5611_PROM_READ   0xA0
 
#define MS5611_START_CONV_D1   0x48
 
#define MS5611_START_CONV_D2   0x58
 
#define MS5611_ADC_READ   0x00
 
#define PROM_NB   8
 
#define BARO_MS5611_DT   0.05
 
#define BARO_MS5611_R   20
 
#define BARO_MS5611_SIGMA2   1
 

Enumerations

enum  ms5611_stat {
  MS5611_UNINIT, MS5611_RESET, MS5611_RESET_OK, MS5611_PROM,
  MS5611_IDLE, MS5611_CONV_D1, MS5611_CONV_D1_OK, MS5611_ADC_D1,
  MS5611_CONV_D2, MS5611_CONV_D2_OK, MS5611_ADC_D2
}
 

Functions

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

bool_t baro_ms5611_enabled
 
float baro_ms5611_r
 
float baro_ms5611_sigma2
 

Macro Definition Documentation

#define BARO_MS5611_DT   0.05

Definition at line 15 of file baro_ms5611_i2c.h.

#define BARO_MS5611_R   20

Definition at line 16 of file baro_ms5611_i2c.h.

Referenced by baro_ms5611_init().

#define BARO_MS5611_SIGMA2   1

Definition at line 17 of file baro_ms5611_i2c.h.

Referenced by baro_ms5611_init().

#define MS5611_ADC_READ   0x00

Definition at line 11 of file baro_ms5611_i2c.h.

Referenced by baro_ms5611_d1(), and baro_ms5611_d2().

#define MS5611_PROM_READ   0xA0

Definition at line 8 of file baro_ms5611_i2c.h.

Referenced by baro_ms5611_event(), and baro_ms5611_periodic().

#define MS5611_SOFT_RESET   0x1E

Definition at line 7 of file baro_ms5611_i2c.h.

Referenced by baro_ms5611_periodic().

#define MS5611_START_CONV_D1   0x48

Definition at line 9 of file baro_ms5611_i2c.h.

Referenced by baro_ms5611_periodic().

#define MS5611_START_CONV_D2   0x58

Definition at line 10 of file baro_ms5611_i2c.h.

Referenced by baro_ms5611_event().

#define PROM_NB   8

Definition at line 13 of file baro_ms5611_i2c.h.

Referenced by baro_ms5611_event().

Enumeration Type Documentation

Enumerator
MS5611_UNINIT 
MS5611_RESET 
MS5611_RESET_OK 
MS5611_PROM 
MS5611_IDLE 
MS5611_CONV_D1 
MS5611_CONV_D1_OK 
MS5611_ADC_D1 
MS5611_CONV_D2 
MS5611_CONV_D2_OK 
MS5611_ADC_D2 

Definition at line 22 of file baro_ms5611_i2c.h.

Function Documentation

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

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().