Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ DUST_GP2Y_IDLE

#define DUST_GP2Y_IDLE   1

Definition at line 7 of file dust_gp2y.h.

◆ DUST_GP2Y_UNINIT

#define DUST_GP2Y_UNINIT   0

Definition at line 6 of file dust_gp2y.h.

Function Documentation

◆ dust_gp2y_event()

◆ dust_gp2y_init()

void dust_gp2y_init ( void  )

Definition at line 51 of file dust_gp2y.c.

References dust_gp2y_status, and DUST_GP2Y_UNINIT.

◆ dust_gp2y_periodic()

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

◆ dust_gp2y_density

uint16_t dust_gp2y_density

Definition at line 39 of file dust_gp2y.c.

Referenced by dust_gp2y_event().

◆ dust_gp2y_density_f

float dust_gp2y_density_f

Definition at line 40 of file dust_gp2y.c.

Referenced by dust_gp2y_event().

◆ dust_gp2y_status

uint8_t dust_gp2y_status

Definition at line 38 of file dust_gp2y.c.

Referenced by dust_gp2y_init(), and dust_gp2y_periodic().