1-Wire® library for mbed. Complete 1-Wire library that supports our silicon masters along with a bit-bang master on the MAX32600MBED platform with one common interface for mbed. Slave support has also been included and more slaves will be added as time permits.

Dependents:   MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more

Superseded by MaximInterface.

Revision:
24:8942d8478d68
Parent:
21:00c94aeb533e
Child:
33:a4c015046956
diff -r e8e403d61359 -r 8942d8478d68 RomId.hpp
--- a/RomId.hpp	Mon Mar 21 23:18:45 2016 +0000
+++ b/RomId.hpp	Tue Mar 22 14:24:53 2016 -0500
@@ -41,7 +41,7 @@
 {
 public:
     static const std::size_t byteLen = 8;
-    typedef std::uint8_t byteBuffer[byteLen];
+    typedef std::uint8_t ByteBuffer[byteLen];
 
     static std::uint8_t calculateCRC8(std::uint8_t crc8, std::uint8_t data);
     static std::uint8_t calculateCRC8(const std::uint8_t * data, std::size_t data_len, std::uint8_t crc = 0);
@@ -51,7 +51,7 @@
     static const std::size_t crc8Idx = 7;
     static const std::uint8_t defaultByteVal = 0x00;
 
-    byteBuffer m_romId;
+    ByteBuffer m_romId;
 
 public:
     const RomId & operator=(const RomId & rhs) {
@@ -64,10 +64,10 @@
     bool operator!=(const RomId & rhs) const {
         return !operator==(rhs);
     }
-    operator byteBuffer &() {
+    operator ByteBuffer &() {
         return m_romId;    // Conversion to array reference
     }
-    operator const byteBuffer &() const {
+    operator const ByteBuffer &() const {
         return m_romId;    // Conversion to const array reference
     }
 
@@ -81,7 +81,7 @@
     RomId(const RomId & romId) {
         operator=(romId);
     }
-    RomId(const byteBuffer & romIdBytes) {
+    RomId(const ByteBuffer & romIdBytes) {
         std::memcpy(m_romId, romIdBytes, byteLen);
     }