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
Go to the documentation of this file.
1 
2 /*
3  * board specific functions for the lisa_m board
4  *
5  */
6 
7 #ifndef BOARDS_LISA_M_BARO_H
8 #define BOARDS_LISA_M_BARO_H
9 
10 #include "std.h"
11 
12 // for right now we abuse this file for the ms5611 baro on aspirin as well
13 #if !BARO_MS5611_I2C && !BARO_MS5611
14 
15 #include "mcu_periph/i2c.h"
16 
17 // absolute addr
18 #define BMP085_ADDR 0xEE
19 // Over sample setting (0-3)
20 #define BMP085_OSS 3
21 
30 };
31 
32 struct BaroBoard {
34 };
35 
37  // These values come from EEPROM on sensor
49 
50  // These values are calculated
52 };
53 
54 extern struct BaroBoard baro_board;
55 extern struct i2c_transaction baro_trans;
57 
58 extern void baro_board_send_reset(void);
59 extern void baro_board_send_config(void);
60 
61 #endif // !BARO_MS5611_xx
62 
63 extern void baro_event(void (*b_abs_handler)(void), void (*b_diff_handler)(void));
64 
65 #define BaroEvent(_b_abs_handler, _b_diff_handler) baro_event(_b_abs_handler,_b_diff_handler)
66 
67 #endif /* BOARDS_LISA_M_BARO_H */
unsigned short uint16_t
Definition: types.h:16
LisaBaroStatus
Definition: baro_board.h:13
void baro_board_send_config(void)
struct BaroBoard baro_board
Definition: baro_board.c:35
void baro_board_send_reset(void)
Definition: baro_board.c:84
signed short int16_t
Definition: types.h:17
signed long int32_t
Definition: types.h:19
struct i2c_transaction baro_trans
Definition: baro_board.c:6
void baro_event(void(*b_abs_handler)(void), void(*b_diff_handler)(void))
Definition: baro_board.c:170
enum LisaBaroStatus status
Definition: baro_board.h:28
struct bmp085_baro_calibration calibration
Definition: baro_board.c:8
Architecture independent I2C (Inter-Integrated Circuit Bus) API.