Implementation of 1-Wire with added Alarm Search Functionality

Dependents:   Max32630_One_Wire_Interface

Revision:
62:43039aeca2ab
Parent:
49:36954b62f503
diff -r 268612a10614 -r 43039aeca2ab RomId.hpp
--- a/RomId.hpp	Thu Apr 14 14:38:42 2016 -0500
+++ b/RomId.hpp	Tue Apr 19 10:05:06 2016 -0500
@@ -71,6 +71,10 @@
     array<std::uint8_t, byteLen> m_romId;
 
 public:
+    RomId() { reset(); }
+    RomId(const RomId & romId) : m_romId(romId.m_romId) { }
+    RomId(const ByteBuffer & romIdBytes) : m_romId(romIdBytes) { }
+
     const RomId & operator=(const RomId & rhs)
     {
         this->m_romId = rhs.m_romId;
@@ -105,10 +109,6 @@
         std::memset(m_romId, defaultByteVal, byteLen);
     }
 
-    RomId() { reset(); }
-    RomId(const RomId & romId) : m_romId(romId.m_romId) { }
-    RomId(const ByteBuffer & romIdBytes) : m_romId(romIdBytes) { }
-
     /// Read the Family Code byte.
     std::uint8_t familyCode() const
     {