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.h File Reference

DigiPicco I2C sensor interface. More...

#include "std.h"
+ Include dependency graph for humid_dpicco.h:
+ This graph shows which files directly or indirectly include this file:

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
 

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

Macro Definition Documentation

#define DPICCO_HUMID_MAX   0x7FFF

Definition at line 35 of file humid_dpicco.h.

Referenced by dpicco_event().

#define DPICCO_HUMID_RANGE   100.0

Definition at line 36 of file humid_dpicco.h.

Referenced by dpicco_event().

#define DPICCO_TEMP_MAX   0x7FFF

Definition at line 38 of file humid_dpicco.h.

Referenced by dpicco_event().

#define DPICCO_TEMP_OFFS   -40.0

Definition at line 40 of file humid_dpicco.h.

Referenced by dpicco_event().

#define DPICCO_TEMP_RANGE   165.0

Definition at line 39 of file humid_dpicco.h.

Referenced by dpicco_event().

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_temp

Definition at line 49 of file humid_dpicco.c.

Referenced by dpicco_event().