Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
DigiPicco I2C sensor interface. More...
#include "std.h"
Go to the source code of this file.
Macros | |
#define | DPICCO_HUMID_MAX 0x7FFF |
#define | DPICCO_HUMID_RANGE 100.0 |
#define | DPICCO_TEMP_MAX 0x7FFF |
#define | DPICCO_TEMP_RANGE 165.0 |
#define | DPICCO_TEMP_OFFS -40.0 |
Functions | |
void | dpicco_init (void) |
void | dpicco_periodic (void) |
void | dpicco_event (void) |
Variables | |
float | dpicco_temp |
DigiPicco I2C sensor interface.
This reads the values for humidity and temperature from the IST DigiPicco sensor through I2C.
Definition in file humid_dpicco.h.
#define DPICCO_HUMID_MAX 0x7FFF |
Definition at line 35 of file humid_dpicco.h.
#define DPICCO_HUMID_RANGE 100.0 |
Definition at line 36 of file humid_dpicco.h.
#define DPICCO_TEMP_MAX 0x7FFF |
Definition at line 38 of file humid_dpicco.h.
#define DPICCO_TEMP_OFFS -40.0 |
Definition at line 40 of file humid_dpicco.h.
#define DPICCO_TEMP_RANGE 165.0 |
Definition at line 39 of file humid_dpicco.h.
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().
|
extern |
Definition at line 49 of file humid_dpicco.c.
Referenced by dpicco_event().