32 #define DS18B20_FAMILY_CODE 0x28 36 DS18B20_CMD_CONVERT = 0x44,
37 DS18B20_CMD_WRITE_SCRATCHPAD = 0x4e,
38 DS18B20_CMD_READ_SCRATCHPAD = 0xbe,
39 DS18B20_CMD_COPY_SCRATCHPAD = 0x48,
40 DS18B20_CMD_RECALL_EEPROM = 0xb8,
41 DS18B20_CMD_READ_POWER_SUPPLY = 0xb4
46 DS18B20_CFG_RESOLUTION_R0 = 0x20,
47 DS18B20_CFG_RESOLUTION_R1 = 0x40,
48 _DS18B20_CFG_RESOLUTION_MASK = 3,
49 _DS18B20_CFG_RESOLUTION_SHIFT = 5
55 DS18B20_RESOLUTION_9BITS = 0,
56 DS18B20_RESOLUTION_10BITS = 1,
57 DS18B20_RESOLUTION_11BITS = 2,
58 DS18B20_RESOLUTION_12BITS = 3
59 } DS18B20_RESOLUTIONS_T;