DS1820-EM

Fork of DS1820 by HM Yoong

Revision:
1:78f2fa466c55
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DS1820G.h	Mon Dec 03 22:58:27 2012 +0000
@@ -0,0 +1,38 @@
+/**
+ * DS1820-generic class
+ *
+ * Copyright (C) 2012
+ * http://bulkideas.org
+ */
+
+#include "mbed.h"
+#include <stdint.h>
+
+#ifndef _DS1820G_H_
+#define _DS1820G_H_
+
+class DS1820G
+{
+    /**
+     */
+
+public:
+    typedef union {
+        uint8_t rom[8];
+        struct {
+            uint8_t    familyCode;
+            uint8_t    serialNo[6];
+            uint8_t    CRC;
+        } BYTES;
+    } ROM_Code_t;
+    
+    ROM_Code_t ReadROM();
+    
+    
+
+private:
+
+
+};
+
+#endif
\ No newline at end of file