Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
bmp280_i2c.h
Go to the documentation of this file.
1
/*
2
* Chris Efstathiou hendrixgr@gmail.com
3
* This file is part of paparazzi.
4
*
5
* paparazzi is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2, or (at your option)
8
* any later version.
9
*
10
* paparazzi is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with paparazzi; see the file COPYING. If not, see
17
* <http://www.gnu.org/licenses/>.
18
*/
19
27
#ifndef BMP280_I2C_H
28
#define BMP280_I2C_H
29
30
/* Header includes */
31
#include "
peripherals/bmp280_regs.h
"
32
#include "
mcu_periph/i2c.h
"
33
34
35
struct
Bmp280_I2c
{
36
struct
i2c_periph
*
i2c_p
;
37
struct
i2c_transaction
i2c_trans
;
38
enum
Bmp280Status
status
;
39
bool
initialized
;
40
volatile
bool
data_available
;
41
struct
bmp280_reg_calib_data
calib
;
42
uint32_t
raw_pressure
;
43
uint32_t
raw_temperature
;
44
float
pressure
;
45
float
temperature
;
46
};
47
48
extern
void
bmp280_i2c_read_eeprom_calib
(
struct
Bmp280_I2c
*bmp);
49
extern
void
bmp280_i2c_init
(
struct
Bmp280_I2c
*bmp,
struct
i2c_periph
*i2c_p,
uint8_t
addr);
50
extern
void
bmp280_i2c_periodic
(
struct
Bmp280_I2c
*bmp);
51
extern
void
bmp280_i2c_event
(
struct
Bmp280_I2c
*bmp);
52
53
#endif
/* BMP280_I2C_H */
bmp280_i2c_read_eeprom_calib
void bmp280_i2c_read_eeprom_calib(struct Bmp280_I2c *bmp)
Bmp280_I2c::status
enum Bmp280Status status
state machine status
Definition:
bmp280_i2c.h:38
Bmp280_I2c::data_available
volatile bool data_available
data ready flag
Definition:
bmp280_i2c.h:40
Bmp280_I2c::i2c_p
struct i2c_periph * i2c_p
Definition:
bmp280_i2c.h:36
bmp280_i2c_event
void bmp280_i2c_event(struct Bmp280_I2c *bmp)
Definition:
bmp280_i2c.c:104
bmp280_regs.h
uint32_t
unsigned long uint32_t
Definition:
types.h:18
bmp280_reg_calib_data
Definition:
bmp280_regs.h:157
Bmp280_I2c::raw_pressure
uint32_t raw_pressure
uncompensated pressure
Definition:
bmp280_i2c.h:42
bmp280_i2c_periodic
void bmp280_i2c_periodic(struct Bmp280_I2c *bmp)
Definition:
bmp280_i2c.c:57
Bmp280_I2c::initialized
bool initialized
config done flag
Definition:
bmp280_i2c.h:39
uint8_t
unsigned char uint8_t
Definition:
types.h:14
Bmp280_I2c::i2c_trans
struct i2c_transaction i2c_trans
Definition:
bmp280_i2c.h:37
Bmp280_I2c::temperature
float temperature
temperature in deg Celcius
Definition:
bmp280_i2c.h:45
i2c_transaction
I2C transaction structure.
Definition:
i2c.h:93
Bmp280_I2c::calib
struct bmp280_reg_calib_data calib
calibration data
Definition:
bmp280_i2c.h:41
Bmp280_I2c::raw_temperature
uint32_t raw_temperature
uncompensated temperature
Definition:
bmp280_i2c.h:43
bmp280_i2c_init
void bmp280_i2c_init(struct Bmp280_I2c *bmp, struct i2c_periph *i2c_p, uint8_t addr)
Definition:
bmp280_i2c.c:41
Bmp280_I2c
Definition:
bmp280_i2c.h:35
Bmp280Status
Bmp280Status
Status enum.
Definition:
bmp280_regs.h:148
i2c_periph
Definition:
i2c.h:144
i2c.h
Bmp280_I2c::pressure
float pressure
pressure in Pascal
Definition:
bmp280_i2c.h:44
sw
airborne
peripherals
bmp280_i2c.h
Generated on Tue Feb 1 2022 13:51:17 for Paparazzi UAS by
1.8.17