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.
Diff: RomId.hpp
- Revision:
- 62:43039aeca2ab
- Parent:
- 49:36954b62f503
--- 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 {