|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
#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 |
| #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().
| void dust_gp2y_event | ( | void | ) |
Definition at line 65 of file dust_gp2y.c.
References i2c_transaction::buf, DefaultChannel, DefaultDevice, dust_gp2y_density, dust_gp2y_density_f, gp2y_trans, I2CTransDone, I2CTransSuccess, and i2c_transaction::status.
| 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:| 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().