changing circuitry to disable RTC, update initialization to match
[fw/openalt] / i2c / lm75.h
1 #ifndef _LM75_H_
2 #define _LM75_H_
3
4 //
5 //
6 //
7 #define LM75_ADDRESS (0x90)
8
9 #define LM75_REGISTER_TEMPERATURE   (0x00)
10 #define LM75_REGISTER_CONFIGURATION (0x01)
11 #define LM75_REGISTER_THYST         (0x02)
12 #define LM75_REGISTER_TOS           (0x03)
13
14 //
15 //
16 //
17 int  lm75Init (void);
18 void lm75SetMode (int mode);
19 void lm75SetAddress (U8 address);
20 int  lm75ReRead (int *value);
21 int  lm75TemperatureRead (int *temp);
22 int  lm75ConfigRead (int *configValue);
23 int  lm75ConfigWrite (int configValue);
24 int  lm75THYSTRead (int *thystValue);
25 int  lm75THYSTWrite (int thystValue);
26 int  lm75TOSTRead (int *thystValue);
27 int  lm75TOSWrite (int thystValue);
28
29 #endif