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_board.h File Reference
#include "std.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for baro_board.h:

Go to the source code of this file.

Data Structures

struct  BaroBoard
 
struct  bmp085_baro_calibration
 

Macros

#define BMP085_ADDR   0xEE
 
#define BMP085_OSS   3
 
#define BaroEvent(_b_abs_handler, _b_diff_handler)   baro_event(_b_abs_handler,_b_diff_handler)
 

Enumerations

enum  LisaBaroStatus {
  LBS_UNINITIALIZED, LBS_RESETED, LBS_INITIALIZING_ABS, LBS_INITIALIZING_ABS_1,
  LBS_INITIALIZING_DIFF, LBS_INITIALIZING_DIFF_1, LBS_IDLE, LBS_READING_ABS,
  LBS_READ_ABS, LBS_READING_DIFF, LBS_READ_DIFF, LBS_UNINITIALIZED,
  LBS_REQUEST, LBS_READING, LBS_READ, LBS_REQUEST_TEMP,
  LBS_READING_TEMP, LBS_READ_TEMP
}
 

Functions

void baro_board_send_reset (void)
 
void baro_board_send_config (void)
 
void baro_event (void(*b_abs_handler)(void), void(*b_diff_handler)(void))
 

Variables

struct BaroBoard baro_board
 
struct i2c_transaction baro_trans
 
struct bmp085_baro_calibration calibration
 

Macro Definition Documentation

#define BaroEvent (   _b_abs_handler,
  _b_diff_handler 
)    baro_event(_b_abs_handler,_b_diff_handler)

Definition at line 65 of file baro_board.h.

#define BMP085_ADDR   0xEE

Definition at line 18 of file baro_board.h.

Referenced by bmp085_read_reg16(), bmp085_read_reg24(), and bmp085_write_reg().

#define BMP085_OSS   3

Definition at line 20 of file baro_board.h.

Referenced by baro_apply_calibration(), baro_event(), and bmp085_request_pressure().

Enumeration Type Documentation

Enumerator
LBS_UNINITIALIZED 
LBS_RESETED 
LBS_INITIALIZING_ABS 
LBS_INITIALIZING_ABS_1 
LBS_INITIALIZING_DIFF 
LBS_INITIALIZING_DIFF_1 
LBS_IDLE 
LBS_READING_ABS 
LBS_READ_ABS 
LBS_READING_DIFF 
LBS_READ_DIFF 
LBS_UNINITIALIZED 
LBS_REQUEST 
LBS_READING 
LBS_READ 
LBS_REQUEST_TEMP 
LBS_READING_TEMP 
LBS_READ_TEMP 

Definition at line 22 of file baro_board.h.

Function Documentation

void baro_board_send_config ( void  )
void baro_board_send_reset ( void  )

Definition at line 84 of file baro_board.c.

References baro_trans, i2c_transaction::buf, i2c_submit(), I2CTransTx, i2c_transaction::len_w, i2c_transaction::slave_addr, and i2c_transaction::type.

Referenced by baro_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct BaroBoard baro_board

Definition at line 35 of file baro_board.c.

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

struct bmp085_baro_calibration calibration

Definition at line 8 of file baro_board.c.

Referenced by baro_apply_calibration(), baro_event(), and bmp085_baro_read_calibration().