components/esp32-ds18b20/ds18b20.c

changeset 1
ad2c8b13eb88
parent 0
b74b0e4902c3
child 91
255a75322212
--- a/components/esp32-ds18b20/ds18b20.c	Sat Oct 20 13:23:15 2018 +0200
+++ b/components/esp32-ds18b20/ds18b20.c	Sat Oct 20 17:09:48 2018 +0200
@@ -51,12 +51,12 @@
 static const int T_CONV = 750;   // maximum conversion time at 12-bit resolution in milliseconds
 
 // Function commands
-#define DS18B20_FUNCTION_TEMP_CONVERT       0x44
-#define DS18B20_FUNCTION_SCRATCHPAD_WRITE   0x4E
-#define DS18B20_FUNCTION_SCRATCHPAD_READ    0xBE
-#define DS18B20_FUNCTION_SCRATCHPAD_COPY    0x48
-#define DS18B20_FUNCTION_EEPROM_RECALL      0xB8
-#define DS18B20_FUNCTION_POWER_SUPPLY_READ  0xB4
+#define DS18B20_FUNCTION_TEMP_CONVERT       0x44		///< Start temperature conversion
+#define DS18B20_FUNCTION_SCRATCHPAD_WRITE   0x4E		///< Write scratchpad
+#define DS18B20_FUNCTION_SCRATCHPAD_READ    0xBE		///< Read scratchpad
+#define DS18B20_FUNCTION_SCRATCHPAD_COPY    0x48		///< Copy scratchpad
+#define DS18B20_FUNCTION_EEPROM_RECALL      0xB8		///< EEPROM recall
+#define DS18B20_FUNCTION_POWER_SUPPLY_READ  0xB4		///< Read powersupply mode
 
 /// @cond ignore
 typedef struct

mercurial