Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 d1
Definition: ms5611.h:55
unsigned short uint16_t
Definition: types.h:16
bool ms5611_calc(struct Ms5611Data *ms)
Calculate temperature and compensated pressure for MS5611.
Definition: ms5611.c:81
#define PROM_NB
Definition: ms5611_regs.h:38
uint16_t c[PROM_NB]
Definition: ms5611.h:54
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
uint32_t d2
Definition: ms5611.h:56
bool ms5611_prom_crc_ok(uint16_t *prom)
Check if CRC of PROM data is OK.
Definition: ms5611.c:36
unsigned long uint32_t
Definition: types.h:18
Register definitions for MS5611 barometer.
signed long int32_t
Definition: types.h:19
Ms5611Status
Definition: ms5611.h:37
int32_t temperature
temperature with 0.01 degrees Celsius resolution
Definition: ms5611.h:53