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

Go to the source code of this file.

Macros

#define DUST_GP2Y_UNINIT   0
 
#define DUST_GP2Y_IDLE   1
 

Functions

void dust_gp2y_init (void)
 
void dust_gp2y_periodic (void)
 
void dust_gp2y_event (void)
 

Variables

uint8_t dust_gp2y_status
 
uint16_t dust_gp2y_density
 
float dust_gp2y_density_f
 

Macro Definition Documentation

#define DUST_GP2Y_IDLE   1

Definition at line 7 of file dust_gp2y.h.

Referenced by dust_gp2y_periodic().

#define DUST_GP2Y_UNINIT   0

Definition at line 6 of file dust_gp2y.h.

Referenced by dust_gp2y_init(), and dust_gp2y_periodic().

Function Documentation

void dust_gp2y_init ( void  )

Definition at line 51 of file dust_gp2y.c.

References dust_gp2y_status, and DUST_GP2Y_UNINIT.

void dust_gp2y_periodic ( void  )

Definition at line 56 of file dust_gp2y.c.

References DUST_GP2Y_IDLE, dust_gp2y_status, DUST_GP2Y_UNINIT, GP2Y_I2C_DEV, GP2Y_SLAVE_ADDR, gp2y_trans, i2c_receive(), and sys_time::nb_sec.

+ Here is the call graph for this function:

Variable Documentation

uint16_t dust_gp2y_density

Definition at line 39 of file dust_gp2y.c.

Referenced by dust_gp2y_event().

float dust_gp2y_density_f

Definition at line 40 of file dust_gp2y.c.

Referenced by dust_gp2y_event().

uint8_t dust_gp2y_status

Definition at line 38 of file dust_gp2y.c.

Referenced by dust_gp2y_init(), and dust_gp2y_periodic().