Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
humid_sht_i2c.h
Go to the documentation of this file.
1
#ifndef HUMID_SHT_I2C_H
2
#define HUMID_SHT_I2C_H
3
4
#include "
std.h
"
5
6
#define SHT2_WRITE_USER 0xE6
7
#define SHT2_READ_USER 0xE7
8
#define SHT2_TRIGGER_TEMP 0xF3
9
#define SHT2_TRIGGER_HUMID 0xF5
10
#define SHT2_SOFT_RESET 0xFE
11
12
enum
sht_stat_i2c
{
13
SHT2_UNINIT
,
14
SHT2_IDLE
,
15
SHT2_RESET
,
16
SHT2_SERIAL
,
17
SHT2_SERIAL1
,
18
SHT2_SERIAL2
,
19
SHT2_SET_CONFIG
,
20
SHT2_READ_SERIAL
,
21
SHT2_TRIG_TEMP
,
22
SHT2_GET_TEMP
,
23
SHT2_READ_TEMP
,
24
SHT2_TRIG_HUMID
,
25
SHT2_GET_HUMID
,
26
SHT2_READ_HUMID
27
};
28
29
int8_t
humid_sht_crc
(
volatile
uint8_t
*data);
30
void
humid_sht_init_i2c
(
void
);
31
void
humid_sht_periodic_i2c
(
void
);
32
void
humid_sht_p_temp
(
void
);
33
void
humid_sht_p_humid
(
void
);
34
void
humid_sht_event_i2c
(
void
);
35
36
extern
uint16_t
humidsht_i2c
,
tempsht_i2c
;
37
extern
float
fhumidsht_i2c
,
ftempsht_i2c
;
38
39
#endif
uint16_t
unsigned short uint16_t
Definition:
types.h:16
humid_sht_init_i2c
void humid_sht_init_i2c(void)
Definition:
humid_sht_i2c.c:71
SHT2_TRIG_HUMID
Definition:
humid_sht_i2c.h:24
SHT2_SERIAL
Definition:
humid_sht_i2c.h:16
SHT2_SERIAL1
Definition:
humid_sht_i2c.h:17
ftempsht_i2c
float ftempsht_i2c
Definition:
humid_sht_i2c.c:48
SHT2_READ_HUMID
Definition:
humid_sht_i2c.h:26
humid_sht_p_temp
void humid_sht_p_temp(void)
Definition:
humid_sht_i2c.c:111
SHT2_SERIAL2
Definition:
humid_sht_i2c.h:18
sht_stat_i2c
sht_stat_i2c
Definition:
humid_sht_i2c.h:12
SHT2_READ_SERIAL
Definition:
humid_sht_i2c.h:20
SHT2_GET_TEMP
Definition:
humid_sht_i2c.h:22
SHT2_READ_TEMP
Definition:
humid_sht_i2c.h:23
humid_sht_periodic_i2c
void humid_sht_periodic_i2c(void)
Definition:
humid_sht_i2c.c:76
humid_sht_event_i2c
void humid_sht_event_i2c(void)
Definition:
humid_sht_i2c.c:130
SHT2_UNINIT
Definition:
humid_sht_i2c.h:13
SHT2_GET_HUMID
Definition:
humid_sht_i2c.h:25
tempsht_i2c
uint16_t tempsht_i2c
Definition:
humid_sht_i2c.c:47
std.h
uint8_t
unsigned char uint8_t
Definition:
types.h:14
humid_sht_p_humid
void humid_sht_p_humid(void)
Definition:
humid_sht_i2c.c:121
SHT2_RESET
Definition:
humid_sht_i2c.h:15
humid_sht_crc
int8_t humid_sht_crc(volatile uint8_t *data)
Definition:
humid_sht_i2c.c:50
SHT2_TRIG_TEMP
Definition:
humid_sht_i2c.h:21
SHT2_IDLE
Definition:
humid_sht_i2c.h:14
SHT2_SET_CONFIG
Definition:
humid_sht_i2c.h:19
int8_t
signed char int8_t
Definition:
types.h:15
humidsht_i2c
uint16_t humidsht_i2c
Definition:
humid_sht_i2c.c:47
fhumidsht_i2c
float fhumidsht_i2c
Definition:
humid_sht_i2c.c:48
sw
airborne
modules
meteo
humid_sht_i2c.h
Generated on Wed Aug 28 2019 16:29:06 for Paparazzi UAS by
1.8.8