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_sht_i2c.c File Reference

Sensirion SHT25 humidity/temperature sensor interface. More...

#include "modules/meteo/humid_sht_i2c.h"
#include "mcu_periph/i2c.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for humid_sht_i2c.c:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 
#define SHT_I2C_DEV   i2c0
 
#define SHT_SLAVE_ADDR   0x80
 

Functions

int8_t humid_sht_crc (volatile uint8_t *data)
 
void humid_sht_init_i2c (void)
 
void humid_sht_periodic_i2c (void)
 
void humid_sht_p_temp (void)
 
void humid_sht_p_humid (void)
 
void humid_sht_event_i2c (void)
 

Variables

struct i2c_transaction sht_trans
 
uint8_t sht_status
 
uint8_t sht_serial [8] = {0}
 
uint32_t sht_serial1 =0
 
uint32_t sht_serial2 =0
 
uint16_t humidsht_i2c
 
uint16_t tempsht_i2c
 
float fhumidsht_i2c
 
float ftempsht_i2c
 

Detailed Description

Sensirion SHT25 humidity/temperature sensor interface.

Definition in file humid_sht_i2c.c.

Macro Definition Documentation

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 39 of file humid_sht_i2c.c.

#define SHT_I2C_DEV   i2c0
#define SHT_SLAVE_ADDR   0x80

Function Documentation

int8_t humid_sht_crc ( volatile uint8_t data)

Definition at line 55 of file humid_sht_i2c.c.

References crc.

Referenced by humid_sht_event_i2c().

+ Here is the caller graph for this function:

void humid_sht_init_i2c ( void  )

Definition at line 73 of file humid_sht_i2c.c.

References SHT2_UNINIT, and sht_status.

void humid_sht_p_humid ( void  )
void humid_sht_p_temp ( void  )

Variable Documentation

float fhumidsht_i2c

Definition at line 53 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c().

float ftempsht_i2c

Definition at line 53 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c().

uint16_t humidsht_i2c

Definition at line 52 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c().

uint8_t sht_serial[8] = {0}

Definition at line 50 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c().

uint32_t sht_serial1 =0

Definition at line 51 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c(), and humid_sht_periodic_i2c().

uint32_t sht_serial2 =0

Definition at line 51 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c(), and humid_sht_periodic_i2c().

uint16_t tempsht_i2c

Definition at line 52 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c().