Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
baro_scp_i2c.h
Go to the documentation of this file.
1 #ifndef BARO_SCP_H
2 #define BARO_SCP_H
3 
4 #include "std.h"
5 
6 #define SCP1000_OPERATION 0x03
7 
8 #define SCP1000_HIGH_SPEED 0x09
9 #define SCP1000_HIGH_RES 0x0A
10 #define SCP1000_ULT_LOW_PW 0x0B
11 #define SCP1000_LOW_PW 0x0C
12 
13 #define SCP1000_DATARD8 0x7F
14 #define SCP1000_DATARD16 0x80
15 #define SCP1000_TEMPOUT 0x81
16 
17 #define BARO_SCP_UNINIT 0
18 #define BARO_SCP_IDLE 1
19 #define BARO_SCP_RD_TEMP 2
20 #define BARO_SCP_RD_PRESS_0 3
21 #define BARO_SCP_RD_PRESS_1 4
22 
26 
27 void baro_scp_init(void);
28 void baro_scp_periodic(void);
29 void baro_scp_event(void);
30 
31 #endif
uint32_t baro_scp_pressure
Definition: baro_scp_i2c.c:25
uint8_t baro_scp_status
Definition: baro_scp_i2c.c:24
void baro_scp_event(void)
Definition: baro_scp_i2c.c:65
void baro_scp_periodic(void)
Definition: baro_scp_i2c.c:49
void baro_scp_init(void)
Definition: baro_scp_i2c.c:44
uint16_t baro_scp_temperature
Definition: baro_scp_i2c.c:26
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
Definition: vl53l1_types.h:88
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition: vl53l1_types.h:78
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98