Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ DPICCO_HUMID_MAX

#define DPICCO_HUMID_MAX   0x7FFF

Definition at line 35 of file humid_dpicco.h.

◆ DPICCO_HUMID_RANGE

#define DPICCO_HUMID_RANGE   100.0

Definition at line 36 of file humid_dpicco.h.

◆ DPICCO_TEMP_MAX

#define DPICCO_TEMP_MAX   0x7FFF

Definition at line 38 of file humid_dpicco.h.

◆ DPICCO_TEMP_OFFS

#define DPICCO_TEMP_OFFS   -40.0

Definition at line 40 of file humid_dpicco.h.

◆ DPICCO_TEMP_RANGE

#define DPICCO_TEMP_RANGE   165.0

Definition at line 39 of file humid_dpicco.h.

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_temp

float dpicco_temp

Definition at line 49 of file humid_dpicco.c.

Referenced by dpicco_event().