Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
enose.h File Reference
#include "std.h"
+ Include dependency graph for enose.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ENOSE_NB_SENSOR   3
 
#define ENOSE_IDLE   0
 
#define ENOSE_SETTINGS   1
 
#define ENOSE_MEASURING_WR   2
 
#define ENOSE_MEASURING_RD   3
 
#define enose_SetHeat0(val)   {enose_set_heat(0, val);}
 
#define enose_SetHeat1(val)   {enose_set_heat(1, val);}
 
#define enose_SetHeat2(val)   {enose_set_heat(2, val);}
 
#define enose_DecreaseVal0(_x)   { enose_val[0] -= _x; }
 
#define enose_DecreaseVal1(_x)   { enose_val[1] -= _x; }
 
#define enose_DecreaseVal2(_x)   { enose_val[2] -= _x; }
 

Functions

void enose_init (void)
 
void enose_set_heat (uint8_t no_sensor, uint8_t value)
 
void enose_periodic (void)
 

Variables

uint8_t enose_heat [ENOSE_NB_SENSOR]
 
uint16_t enose_val [ENOSE_NB_SENSOR]
 
uint16_t enose_PID_val
 
uint8_t enose_status
 

Macro Definition Documentation

#define enose_DecreaseVal0 (   _x)    { enose_val[0] -= _x; }

Definition at line 36 of file enose.h.

#define enose_DecreaseVal1 (   _x)    { enose_val[1] -= _x; }

Definition at line 37 of file enose.h.

#define enose_DecreaseVal2 (   _x)    { enose_val[2] -= _x; }

Definition at line 38 of file enose.h.

#define ENOSE_IDLE   0

Definition at line 19 of file enose.h.

Referenced by enose_init(), and enose_periodic().

#define ENOSE_MEASURING_RD   3

Definition at line 22 of file enose.h.

Referenced by enose_periodic().

#define ENOSE_MEASURING_WR   2

Definition at line 21 of file enose.h.

Referenced by enose_periodic().

#define ENOSE_NB_SENSOR   3

Definition at line 13 of file enose.h.

Referenced by chemo_periodic(), enose_init(), and enose_periodic().

#define enose_SetHeat0 (   val)    {enose_set_heat(0, val);}

Definition at line 32 of file enose.h.

#define enose_SetHeat1 (   val)    {enose_set_heat(1, val);}

Definition at line 33 of file enose.h.

#define enose_SetHeat2 (   val)    {enose_set_heat(2, val);}

Definition at line 34 of file enose.h.

#define ENOSE_SETTINGS   1

Definition at line 20 of file enose.h.

Function Documentation

void enose_init ( void  )

Definition at line 11 of file sim_enose.c.

References adc_buf_channel(), buf_PID, enose_conf_requested, enose_heat, ENOSE_HEAT_INIT, enose_i2c_done, ENOSE_IDLE, ENOSE_NB_SENSOR, enose_status, enose_val, nominal_val, and TRUE.

+ Here is the call graph for this function:

void enose_set_heat ( uint8_t  no_sensor,
uint8_t  value 
)

Definition at line 16 of file sim_enose.c.

References enose_conf_requested, enose_heat, TRUE, and value.

Variable Documentation

uint8_t enose_heat[ENOSE_NB_SENSOR]

Definition at line 4 of file sim_enose.c.

Referenced by enose_init(), enose_periodic(), and enose_set_heat().

uint16_t enose_PID_val

Definition at line 6 of file sim_enose.c.

Referenced by enose_periodic().

uint8_t enose_status

Definition at line 3 of file sim_enose.c.

Referenced by enose_init(), and enose_periodic().

Definition at line 5 of file sim_enose.c.

Referenced by chemo_periodic(), enose_init(), and enose_periodic().