Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
humid_dpicco.c File Reference

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 "modules/datalink/downlink.h"
+ Include dependency graph for humid_dpicco.c:

Go to the source code of this file.


#define DPICCO_I2C_DEV   i2c0
#define DPICCO_SLAVE_ADDR   0xF0


void dpicco_init (void)
void dpicco_periodic (void)
void dpicco_event (void)


uint16_t dpicco_val [2]
float dpicco_humid
float dpicco_temp
struct i2c_transaction dpicco_trans

Detailed Description

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.

Macro Definition Documentation


#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.

Function Documentation

◆ dpicco_event()

◆ dpicco_init()

void dpicco_init ( void  )

Definition at line 54 of file humid_dpicco.c.

References dpicco_trans, I2CTransDone, and i2c_transaction::status.

◆ dpicco_periodic()

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().

+ Here is the call graph for this function:

Variable Documentation

◆ dpicco_humid

float dpicco_humid

Definition at line 48 of file humid_dpicco.c.

Referenced by dpicco_event().

◆ dpicco_temp

float dpicco_temp

Definition at line 49 of file humid_dpicco.c.

Referenced by dpicco_event().

◆ dpicco_trans

struct i2c_transaction dpicco_trans

Definition at line 51 of file humid_dpicco.c.

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

◆ dpicco_val

uint16_t dpicco_val[2]

Definition at line 46 of file humid_dpicco.c.

Referenced by dpicco_event().