HIH-8131  00
hih-8131.h
gehe zur Dokumentation dieser Datei
1 /* Copyright (C) 2015 by Marcel Mueller <marcel@heilpraktiker-praxis-chemnitz.de>
2 * All rights reserved.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License \n
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 *
17 */
34 #ifndef __HIH_8131_H
35 #define __HIH_8131_H 1
36 
37 
67 /* I N C L U D E F I L E S
68 *******************************************************************************/
69 #include <stdint.h>
70 #include <util/delay.h>
71 
72 
73 /* M A C R O D E F I N I T I O N S
74 *******************************************************************************/
75 
76 
77 
78 /* T Y P E D E F I N I T I O N S
79 *******************************************************************************/
80 
81 
82 
83 /* G L O B A L V A R I A B L E S
84 *******************************************************************************/
85 
86 
87 
88 /* P R O T O T Y P E S
89 *******************************************************************************/
90 
98 void hih_mr(void);
99 
100 
101 
115 uint8_t hih_df(uint16_t *hum, uint16_t *tmp);
116 
117 
126 uint8_t hih_scanaddr(void);
127 
128 
129 
138 void hih_setaddr(uint8_t addr);
139 
140 
141 
155 uint8_t hih_getrht(float *rh, float *t);
156 
157 
158 #endif
void hih_mr(void)
Humidity and Temperature Measurement Request.
Definition: hih-8131.c:86
uint8_t hih_df(uint16_t *hum, uint16_t *tmp)
Humidity and Temperature Data Fetch.
Definition: hih-8131.c:106
uint8_t hih_scanaddr(void)
Scan the i2C Address, only for a Single Device on Bus.
Definition: hih-8131.c:131
void hih_setaddr(uint8_t addr)
Set the i2C Address.
Definition: hih-8131.c:160
uint8_t hih_getrht(float *rh, float *t)
Make a complete Measurement Cycle and convert RH in % and T in C°
Definition: hih-8131.c:178