Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
ms5611.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Felix Ruess <felix.ruess@gmail.com>
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 
28 #ifndef MS5611_H
29 #define MS5611_H
30 
31 #include "std.h"
32 
33 /* Include address and register definition */
35 
36 
49 };
50 
51 struct Ms5611Data {
57 };
58 
59 extern bool ms5611_prom_crc_ok(uint16_t *prom);
60 extern bool ms5611_calc(struct Ms5611Data *ms);
61 extern bool ms5607_calc(struct Ms5611Data *ms);
62 
63 #endif /* MS5611_H */
uint32_t d2
Definition: ms5611.h:56
uint32_t d1
Definition: ms5611.h:55
uint32_t pressure
pressure in Pascal (0.01mbar)
Definition: ms5611.h:52
bool ms5607_calc(struct Ms5611Data *ms)
Calculate temperature and compensated pressure for MS5607.
Definition: ms5611.c:124
int32_t temperature
temperature with 0.01 degrees Celsius resolution
Definition: ms5611.h:53
uint16_t c[PROM_NB]
Definition: ms5611.h:54
bool ms5611_prom_crc_ok(uint16_t *prom)
Check if CRC of PROM data is OK.
Definition: ms5611.c:36
bool ms5611_calc(struct Ms5611Data *ms)
Calculate temperature and compensated pressure for MS5611.
Definition: ms5611.c:81
Ms5611Status
Definition: ms5611.h:37
@ MS5611_STATUS_ADC_D2
Definition: ms5611.h:48
@ MS5611_STATUS_IDLE
Definition: ms5611.h:42
@ MS5611_STATUS_PROM
Definition: ms5611.h:41
@ MS5611_STATUS_ADC_D1
Definition: ms5611.h:45
@ MS5611_STATUS_CONV_D1
Definition: ms5611.h:43
@ MS5611_STATUS_CONV_D2_OK
Definition: ms5611.h:47
@ MS5611_STATUS_RESET
Definition: ms5611.h:39
@ MS5611_STATUS_CONV_D1_OK
Definition: ms5611.h:44
@ MS5611_STATUS_RESET_OK
Definition: ms5611.h:40
@ MS5611_STATUS_CONV_D2
Definition: ms5611.h:46
@ MS5611_STATUS_UNINIT
Definition: ms5611.h:38
Register definitions for MS5611 barometer.
#define PROM_NB
Definition: ms5611_regs.h:38
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
Definition: vl53l1_types.h:88
int int32_t
Typedef defining 32 bit int type.
Definition: vl53l1_types.h:83
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition: vl53l1_types.h:78