1 /*
2  * Copyright (C) 2015-2020 Alibaba Group Holding Limited
3  */
4 #include <stdio.h>
5 
6 #ifndef SENSOR_SPI06_H
7 #define SENSOR_SPI06_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 typedef struct {
13     uint8_t id;
14     double  Ctemp;
15     double  Ftemp;
16     double  pressure;
17     double  altitude;
18 } spl06_data_t;
19 
20 extern void spl06_init(void);
21 extern void spl06_getdata(spl06_data_t *p);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif
28