dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_bmp280_priv.h
Go to the documentation of this file.
1 
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  * for more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with this program; if not, see <http://www.gnu.org/licenses/>
25  *
26  * Additional note on redistribution: The copyright and license notices above
27  * must be maintained in each individual source file that is a derivative work
28  * of this source file; otherwise redistribution is prohibited.
29  */
30 
31 #ifndef PIOS_BMP280_PRIV_H
32 #define PIOS_BMP280_PRIV_H
33 
34 #define BMP280_STANDARD_RESOLUTION 0x2D
35 #define BMP280_HIGH_RESOLUTION 0x31
36 #define BMP280_ULTRA_HIGH_RESOLUTION 0x55
37 
40 
44  uint8_t oversampling;
45 };
46 
47 int32_t PIOS_BMP280_Init(const struct pios_bmp280_cfg *cfg, pios_i2c_t i2c_device);
48 int32_t PIOS_BMP280_SPI_Init(const struct pios_bmp280_cfg *cfg, pios_spi_t spi_device,
49  uint32_t spi_slave);
50 
51 #endif /* PIOS_BMP280_PRIV_H */
52 
Configuration structure for the BMP280 driver.
static struct flyingpicmd_cfg_fa cfg
Definition: main.c:49
struct pios_i2c_adapter * pios_i2c_t
Definition: pios_i2c.h:48
int32_t PIOS_BMP280_SPI_Init(const struct pios_bmp280_cfg *cfg, pios_spi_t spi_device, uint32_t spi_slave)
int32_t PIOS_BMP280_Init(const struct pios_bmp280_cfg *cfg, pios_i2c_t i2c_device)