dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_ms5611_priv.h
Go to the documentation of this file.
1 
15 /*
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful, but
22  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  * for more details.
25  *
26  * You should have received a copy of the GNU General Public License along
27  * with this program; if not, see <http://www.gnu.org/licenses/>
28  */
29 
30 #ifndef PIOS_MS5611_PRIV_H
31 #define PIOS_MS5611_PRIV_H
32 
40 };
41 
47 
50 
53 };
54 
55 int32_t PIOS_MS5611_Init(const struct pios_ms5611_cfg * cfg, pios_i2c_t i2c_device);
56 int32_t PIOS_MS5611_SPI_Init(pios_spi_t spi_id, uint32_t slave_num, const struct pios_ms5611_cfg *cfg);
57 
58 #endif /* PIOS_MS5611_PRIV_H */
59 
uint32_t temperature_interleaving
How many samples of pressure for each temperature measurement.
int32_t PIOS_MS5611_SPI_Init(pios_spi_t spi_id, uint32_t slave_num, const struct pios_ms5611_cfg *cfg)
pios_ms5611_osr
The valid oversampling rates.
Configuration structure for the MS5611 driver.
static struct flyingpicmd_cfg_fa cfg
Definition: main.c:49
enum pios_ms5611_osr oversampling
struct pios_i2c_adapter * pios_i2c_t
Definition: pios_i2c.h:48
uint8_t use_0x76_address
I2C address can either be 0x76 or 0x77.
int32_t PIOS_MS5611_Init(const struct pios_ms5611_cfg *cfg, pios_i2c_t i2c_device)