Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
DigiPicco I2C sensor interface. More...
#include "modules/meteo/humid_dpicco.h"
#include "mcu_periph/i2c.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
Go to the source code of this file.
Macros | |
#define | DPICCO_I2C_DEV i2c0 |
#define | DPICCO_SLAVE_ADDR 0xF0 |
Functions | |
void | dpicco_init (void) |
void | dpicco_periodic (void) |
void | dpicco_event (void) |
Variables | |
uint16_t | dpicco_val [2] |
float | dpicco_humid |
float | dpicco_temp |
struct i2c_transaction | dpicco_trans |
DigiPicco I2C sensor interface.
This reads the values for humidity and temperature from the IST DigiPicco sensor through I2C.
Definition in file humid_dpicco.c.
#define DPICCO_I2C_DEV i2c0 |
Definition at line 41 of file humid_dpicco.c.
#define DPICCO_SLAVE_ADDR 0xF0 |
Definition at line 44 of file humid_dpicco.c.
void dpicco_event | ( | void | ) |
Definition at line 65 of file humid_dpicco.c.
References i2c_transaction::buf, DefaultChannel, DefaultDevice, dpicco_humid, DPICCO_HUMID_MAX, DPICCO_HUMID_RANGE, dpicco_temp, DPICCO_TEMP_MAX, DPICCO_TEMP_OFFS, DPICCO_TEMP_RANGE, dpicco_trans, dpicco_val, I2CTransDone, I2CTransSuccess, and i2c_transaction::status.
void dpicco_init | ( | void | ) |
Definition at line 54 of file humid_dpicco.c.
References dpicco_trans, I2CTransDone, and i2c_transaction::status.
void dpicco_periodic | ( | void | ) |
Definition at line 59 of file humid_dpicco.c.
References DPICCO_I2C_DEV, DPICCO_SLAVE_ADDR, dpicco_trans, and i2c_receive().
float dpicco_humid |
Definition at line 48 of file humid_dpicco.c.
Referenced by dpicco_event().
float dpicco_temp |
Definition at line 49 of file humid_dpicco.c.
Referenced by dpicco_event().
struct i2c_transaction dpicco_trans |
Definition at line 51 of file humid_dpicco.c.
Referenced by dpicco_event(), dpicco_init(), and dpicco_periodic().
uint16_t dpicco_val[2] |
Definition at line 46 of file humid_dpicco.c.
Referenced by dpicco_event().