Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 "subsystems/datalink/downlink.h"
+ Include dependency graph for humid_dpicco.c:

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
 

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.

Referenced by dpicco_periodic().

#define DPICCO_SLAVE_ADDR   0xF0

Definition at line 44 of file humid_dpicco.c.

Referenced by dpicco_periodic().

Function Documentation

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

+ Here is the call graph for this function:

Variable Documentation

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