NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
barometer_bmp085.h
Go to the documentation of this file.
1 /*
2  * This file is part of Ninjaflight.
3  *
4  * Ninjaflight is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Ninjaflight is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #pragma once
19 
20 typedef struct bmp085Config_s {
22  uint16_t xclrGpioPin;
24  uint16_t eocGpioPin;
27 
30 
31 #if defined(BARO_EOC_GPIO)
32 bool bmp085TestEOCConnected(const bmp085Config_t *config);
33 #endif
34 
35 #ifdef UNIT_TEST
36 void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState);
37 #endif
GPIO_TypeDef * eocGpioPort
Definition: barometer_bmp085.h:25
Definition: config.h:81
bool bmp085Detect(const bmp085Config_t *config, baro_t *baro)
uint32_t gpioAPB2Peripherals
Definition: barometer_bmp085.h:21
Definition: barometer.h:23
void RCC_APB2PeriphClockCmd()
Definition: baro_bmp085_unittest.cc:189
Definition: platform.h:43
uint16_t xclrGpioPin
Definition: barometer_bmp085.h:22
struct bmp085Config_s bmp085Config_t
Definition: barometer_bmp085.h:20
FunctionalState
Definition: platform.h:54
GPIO_TypeDef * xclrGpioPort
Definition: barometer_bmp085.h:23
uint16_t eocGpioPin
Definition: barometer_bmp085.h:24
Definition: barometer.h:33
void bmp085Disable(const bmp085Config_t *config)