Open Garden  0.10.1-21
tcn75.h
Go to the documentation of this file.
1 /* Copyright (C) 2011 Enrico Rossi
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU Lesser General Public License as
5  * published by the Free Software Foundation, either version 3 of the
6  * License, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this program.
15  * If not, see <http://www.gnu.org/licenses/>.
16  */
17 
19 #ifndef TCN75
20 #define TCN75
21 
22 #include "i2c.h"
23 
25 #define ADDR 0x90
26 
30 #define TCN_CONF 0x21
31 
35 #define TCN_TSAMPLE 250
36 
37 void tcn75_init(void);
38 float tcn75_read_temperature(void);
39 
40 #endif
void tcn75_init(void)
Definition: tcn75.c:64
float tcn75_read_temperature(void)
Definition: tcn75.c:72