|
|
1.1 root 1: #ifndef __DS1620_H__
2: #define __DS1620_H__
3:
4: /*
5: * These defines come from the DS1620 documentation.
6: */
7: #define DS1620_READ_TEMP 0xAA
8: #define DS1620_WRITE_TH 0x01
9: #define DS1620_WRITE_TL 0x02
10: #define DS1620_READ_TH 0xA1
11: #define DS1620_READ_TL 0xA2
12: #define DS1620_START_CONVT 0xEE
13: #define DS1620_STOP_CONVT 0x22
14: #define DS1620_WRITE_CONFIG 0x0C
15: #define DS1620_READ_CONFIG 0xAC
16:
17: #define DS1620_CONFIG_STATUS_DONE 0x80
18: #define DS1620_CONFIG_STATUS_THF 0x40
19: #define DS1620_CONFIG_STATUS_TLF 0x20
20: #define DS1620_CONFIG_STATUS_CPU 0x02
21: #define DS1620_CONFIG_STATUS_1SHOT 0x01
22:
23: #define DS1620_WRITE_SIZE 8
24: #define DS1620_CONFIG_READ_SIZE 8
25: #define DS1620_DATA_READ_SIZE 9
26:
27: #define DS1620_RESET_OFF 0x0f
28: #define DS1620_RESET_ON 0x00
29: #define DS1620_CLK_LOW 0x0f
30: #define DS1620_CLK_HIGH 0x1f
31:
32: #define DS1620_DATA_HIGH 0x11
33: #define DS1620_DATA_LOW 0x10
34: #define DS1620_ENABLE_READ 0x00
35:
36: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.