-
Notifications
You must be signed in to change notification settings - Fork 0
/
DS1820_misc.h
31 lines (31 loc) · 965 Bytes
/
DS1820_misc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef DS1820_MISC_H
#define DS1820_MISC_H
//-----------------------------------------------------------------------------
enum ROMCommand
{
CMD_ROM_READ = 0x33,
CMD_ROM_MATCH = 0x55,
CMD_ROM_SKIP = 0xCC,
CMD_ROM_SEARCH = 0xF0,
CMD_ALARM_SEARCH = 0xEC
};
//-----------------------------------------------------------------------------
enum FunctionCommand
{
CMD_RAM_READ = 0xBE,
CMD_RAM_WRITE = 0x4E,
CMD_RAM_UPLOAD = 0x48,
CMD_START_CONVERTION = 0x44,
CMD_RECALL = 0xB8,
CMD_READ_POWER_SOURCE = 0xB4
};
//-----------------------------------------------------------------------------
enum
{
MODEL_DS1820 = 0x10,
MODEL_DS18S20 = 0x10,
MODEL_DS18B20 = 0x28,
MODEL_DS1822 = 0x22
};
//-----------------------------------------------------------------------------
#endif