Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
airspeed_amsys.h
Go to the documentation of this file.
1 /*
2  * Driver for a Amsys Differential Presure Sensor I2C
3  * AMS 5812-0003-D
4  *
5  * Copyright (C) 2010 The Paparazzi Team
6  *
7  * This file is part of paparazzi.
8  *
9  * paparazzi is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2, or (at your option)
12  * any later version.
13  *
14  * paparazzi is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with paparazzi; see the file COPYING. If not, write to
21  * the Free Software Foundation, 59 Temple Place - Suite 330,
22  * Boston, MA 02111-1307, USA.
23  */
24 
25 #ifndef AIRSPEED_AMSYS_H
26 #define AIRSPEED_AMSYS_H
27 
28 #include "std.h"
29 #include "mcu_periph/i2c.h"
30 
31 extern float airspeed_scale;
32 extern float airspeed_filter;
33 
35 
36 extern void airspeed_amsys_init( void );
37 extern void airspeed_amsys_read_periodic( void );
38 extern void airspeed_amsys_read_event( void );
39 
40 #define AirspeedAmsysEvent() { if (airspeed_amsys_i2c_trans.status == I2CTransSuccess) airspeed_amsys_read_event(); }
41 
42 #endif // AIRSPEED_AMSYS_H
void airspeed_amsys_read_periodic(void)
I2C transaction structure.
Definition: i2c.h:93
struct i2c_transaction airspeed_amsys_i2c_trans
float airspeed_filter
void airspeed_amsys_init(void)
float airspeed_scale
void airspeed_amsys_read_event(void)
Architecture independent I2C (Inter-Integrated Circuit Bus) API.