Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces 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 #define ENOSE_NB_SENSOR 3
7 
10 extern uint16_t enose_PID_val;
11 
12 #define ENOSE_IDLE 0
13 #define ENOSE_SETTINGS 1
14 #define ENOSE_MEASURING_WR 2
15 #define ENOSE_MEASURING_RD 3
16 
17 
18 extern uint8_t enose_status;
19 
20 extern void enose_init(void);
21 
22 extern void enose_set_heat(uint8_t no_sensor, uint8_t value);
23 extern void enose_periodic(void);
24 
25 #define enose_SetHeat0(val) {enose_set_heat(0, val);}
26 #define enose_SetHeat1(val) {enose_set_heat(1, val);}
27 #define enose_SetHeat2(val) {enose_set_heat(2, val);}
28 
29 #define enose_DecreaseVal0(_x) { enose_val[0] -= _x; }
30 #define enose_DecreaseVal1(_x) { enose_val[1] -= _x; }
31 #define enose_DecreaseVal2(_x) { enose_val[2] -= _x; }
32 
33 
34 #endif /* ENOSE_H */
unsigned short uint16_t
Definition: types.h:16
uint16_t enose_val[ENOSE_NB_SENSOR]
Definition: sim_enose.c:5
void enose_set_heat(uint8_t no_sensor, uint8_t value)
Definition: sim_enose.c:18
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:6
uint8_t enose_heat[ENOSE_NB_SENSOR]
Definition: sim_enose.c:4
void enose_periodic(void)
Definition: sim_enose.c:19