Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
humid_dpicco.c File Reference
#include "modules/meteo/humid_dpicco.h"
#include "mcu_periph/i2c.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for humid_dpicco.c:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 
#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
 

Macro Definition Documentation

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 17 of file humid_dpicco.c.

#define DPICCO_I2C_DEV   i2c0

Definition at line 21 of file humid_dpicco.c.

Referenced by dpicco_periodic().

#define DPICCO_SLAVE_ADDR   0xF0

Definition at line 24 of file humid_dpicco.c.

Referenced by dpicco_periodic().

Function Documentation

void dpicco_init ( void  )

Definition at line 34 of file humid_dpicco.c.

References dpicco_trans, I2CTransDone, and i2c_transaction::status.

void dpicco_periodic ( void  )

Definition at line 38 of file humid_dpicco.c.

References DPICCO_I2C_DEV, DPICCO_SLAVE_ADDR, dpicco_trans, and I2CReceive.

Variable Documentation

float dpicco_humid

Definition at line 28 of file humid_dpicco.c.

Referenced by dpicco_event().

float dpicco_temp

Definition at line 29 of file humid_dpicco.c.

Referenced by dpicco_event().

struct i2c_transaction dpicco_trans

Definition at line 31 of file humid_dpicco.c.

Referenced by dpicco_event(), dpicco_init(), and dpicco_periodic().

uint16_t dpicco_val[2]

Definition at line 26 of file humid_dpicco.c.

Referenced by dpicco_event().