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
enose.h
Go to the documentation of this file.
1 #ifndef ENOSE_H
2 #define ENOSE_H
3 
4 #include "std.h"
5 
6 #ifdef ENOSE
7 #if !defined USE_I2C && !defined SITL
8 #define USE_I2C
9 #endif
10 #endif
11 
12 
13 #define ENOSE_NB_SENSOR 3
14 
17 extern uint16_t enose_PID_val;
18 
19 #define ENOSE_IDLE 0
20 #define ENOSE_SETTINGS 1
21 #define ENOSE_MEASURING_WR 2
22 #define ENOSE_MEASURING_RD 3
23 
24 
25 extern uint8_t enose_status;
26 
27 extern void enose_init( void );
28 
29 extern void enose_set_heat(uint8_t no_sensor, uint8_t value);
30 extern void enose_periodic( void );
31 
32 #define enose_SetHeat0(val) {enose_set_heat(0, val);}
33 #define enose_SetHeat1(val) {enose_set_heat(1, val);}
34 #define enose_SetHeat2(val) {enose_set_heat(2, val);}
35 
36 #define enose_DecreaseVal0(_x) { enose_val[0] -= _x; }
37 #define enose_DecreaseVal1(_x) { enose_val[1] -= _x; }
38 #define enose_DecreaseVal2(_x) { enose_val[2] -= _x; }
39 
40 
41 #endif /* ENOSE_H */
unsigned short uint16_t
Definition: types.h:16
uint16_t enose_val[ENOSE_NB_SENSOR]
Definition: sim_enose.c:5
uint16_t value
Definition: adc_arch.c:585
void enose_set_heat(uint8_t no_sensor, uint8_t value)
Definition: sim_enose.c:16
uint16_t enose_PID_val
Definition: sim_enose.c:6
void enose_init(void)
Definition: sim_enose.c:11
uint8_t enose_status
Definition: sim_enose.c:3
unsigned char uint8_t
Definition: types.h:14
#define ENOSE_NB_SENSOR
Definition: enose.h:13
uint8_t enose_heat[ENOSE_NB_SENSOR]
Definition: sim_enose.c:4
void enose_periodic(void)
Definition: sim_enose.c:17