Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
unsigned short uint16_t
Definition: types.h:16
void baro_scp_periodic(void)
Definition: baro_scp.c:34
uint8_t baro_scp_status
Definition: baro_scp.c:24
void baro_scp_init(void)
Definition: baro_scp.c:72
uint16_t baro_scp_temperature
Definition: baro_scp.c:26
uint32_t baro_scp_pressure
Definition: baro_scp.c:25
unsigned long uint32_t
Definition: types.h:18
unsigned char uint8_t
Definition: types.h:14
void baro_scp_event(void)
Definition: baro_scp.c:188