Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
baro_ms5611_spi.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Martin Mueller <martinmm@pfump.org>
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  */
22 
29 #ifndef BARO_MS56111_SPI_H
30 #define BARO_MS56111_SPI_H
31 
32 #include "std.h"
33 #include "peripherals/ms5611_spi.h"
34 
36 #define BARO_MS5611_DT BARO_MS5611_READ_PERIOD
37 #define BARO_MS5611_R 20
38 #define BARO_MS5611_SIGMA2 1
39 extern float baro_ms5611_r;
40 extern float baro_ms5611_sigma2;
41 
42 extern float baro_ms5611_alt;
43 extern bool baro_ms5611_alt_valid;
44 extern bool baro_ms5611_enabled;
45 
46 extern struct Ms5611_Spi baro_ms5611;
47 
48 extern void baro_ms5611_init(void);
49 extern void baro_ms5611_read(void);
50 extern void baro_ms5611_periodic_check(void);
51 extern void baro_ms5611_event(void);
52 extern void baro_ms5611_send_coeff(void);
53 
54 #endif
baro_ms5611_event
void baro_ms5611_event(void)
Definition: baro_ms5611_i2c.c:90
ms5611_spi.h
Ms5611_Spi
Definition: ms5611_spi.h:36
std.h
baro_ms5611_alt
float baro_ms5611_alt
Definition: baro_ms5611_i2c.c:52
baro_ms5611_sigma2
float baro_ms5611_sigma2
Definition: baro_ms5611_i2c.c:57
baro_ms5611_r
float baro_ms5611_r
Definition: baro_ms5611_i2c.c:56
baro_ms5611_alt_valid
bool baro_ms5611_alt_valid
Definition: baro_ms5611_i2c.c:53
baro_ms5611_enabled
bool baro_ms5611_enabled
Definition: baro_ms5611_i2c.c:54
baro_ms5611_init
void baro_ms5611_init(void)
Definition: baro_ms5611_i2c.c:60
baro_ms5611_read
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
Definition: baro_ms5611_i2c.c:83
baro_ms5611_send_coeff
void baro_ms5611_send_coeff(void)
Definition: baro_ms5611_i2c.c:115
baro_ms5611_periodic_check
void baro_ms5611_periodic_check(void)
Definition: baro_ms5611_i2c.c:71
baro_ms5611
struct Ms5611_Spi baro_ms5611
Definition: baro_ms5611_i2c.c:49