Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
humid_sht_i2c.h File Reference
#include "std.h"
+ Include dependency graph for humid_sht_i2c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SHT2_WRITE_USER   0xE6
 
#define SHT2_READ_USER   0xE7
 
#define SHT2_TRIGGER_TEMP   0xF3
 
#define SHT2_TRIGGER_HUMID   0xF5
 
#define SHT2_SOFT_RESET   0xFE
 

Enumerations

enum  sht_stat_i2c {
  SHT2_UNINIT, SHT2_IDLE, SHT2_RESET, SHT2_SERIAL,
  SHT2_SERIAL1, SHT2_SERIAL2, SHT2_SET_CONFIG, SHT2_READ_SERIAL,
  SHT2_TRIG_TEMP, SHT2_GET_TEMP, SHT2_READ_TEMP, SHT2_TRIG_HUMID,
  SHT2_GET_HUMID, SHT2_READ_HUMID
}
 

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

uint16_t humidsht_i2c
 
uint16_t tempsht_i2c
 
float fhumidsht_i2c
 
float ftempsht_i2c
 

Macro Definition Documentation

#define SHT2_READ_USER   0xE7

Definition at line 7 of file humid_sht_i2c.h.

#define SHT2_SOFT_RESET   0xFE

Definition at line 10 of file humid_sht_i2c.h.

Referenced by humid_sht_periodic_i2c().

#define SHT2_TRIGGER_HUMID   0xF5

Definition at line 9 of file humid_sht_i2c.h.

Referenced by humid_sht_event_i2c().

#define SHT2_TRIGGER_TEMP   0xF3

Definition at line 8 of file humid_sht_i2c.h.

Referenced by humid_sht_periodic_i2c().

#define SHT2_WRITE_USER   0xE6

Definition at line 6 of file humid_sht_i2c.h.

Enumeration Type Documentation

Enumerator
SHT2_UNINIT 
SHT2_IDLE 
SHT2_RESET 
SHT2_SERIAL 
SHT2_SERIAL1 
SHT2_SERIAL2 
SHT2_SET_CONFIG 
SHT2_READ_SERIAL 
SHT2_TRIG_TEMP 
SHT2_GET_TEMP 
SHT2_READ_TEMP 
SHT2_TRIG_HUMID 
SHT2_GET_HUMID 
SHT2_READ_HUMID 

Definition at line 12 of file humid_sht_i2c.h.

Function Documentation

int8_t humid_sht_crc ( volatile uint8_t data)

Definition at line 50 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 71 of file humid_sht_i2c.c.

References SHT2_UNINIT, and sht_status.

void humid_sht_p_humid ( void  )

Definition at line 121 of file humid_sht_i2c.c.

References i2c_receive(), SHT2_GET_HUMID, SHT2_READ_HUMID, SHT_I2C_DEV, SHT_SLAVE_ADDR, sht_status, and sht_trans.

+ Here is the call graph for this function:

void humid_sht_p_temp ( void  )

Definition at line 111 of file humid_sht_i2c.c.

References i2c_receive(), SHT2_GET_TEMP, SHT2_READ_TEMP, SHT_I2C_DEV, SHT_SLAVE_ADDR, sht_status, and sht_trans.

+ Here is the call graph for this function:

Variable Documentation

float fhumidsht_i2c

Definition at line 48 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c().

float ftempsht_i2c

Definition at line 48 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c().

uint16_t humidsht_i2c

Definition at line 47 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c().

uint16_t tempsht_i2c

Definition at line 47 of file humid_sht_i2c.c.

Referenced by humid_sht_event_i2c().