Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
Diff: OneWire_Memory/Authenticators/DS28E15_22_25/DS28E15_22_25.cpp
- Revision:
- 51:a65f031e997b
- Parent:
- 50:e967f9befbd0
- Child:
- 61:268612a10614
--- a/OneWire_Memory/Authenticators/DS28E15_22_25/DS28E15_22_25.cpp Mon Apr 11 14:48:43 2016 -0500 +++ b/OneWire_Memory/Authenticators/DS28E15_22_25/DS28E15_22_25.cpp Mon Apr 11 15:34:22 2016 -0500 @@ -267,7 +267,7 @@ return result; } -template <DS28E15_22_25::ProtectionBlocks blocks> OneWireSlave::CmdResult DS28E15_22_25::readAllBlockProtection(BlockProtection (&protection)[blocks]) +template <DS28E15_22_25::ProtectionBlocks blocks> OneWireSlave::CmdResult DS28E15_22_25::readAllBlockProtection(BlockProtection (&protection)[blocks]) const { std::uint8_t buf[blocks]; CmdResult result = readStatus(false, true, 0, buf); @@ -279,17 +279,17 @@ return result; } -OneWireSlave::CmdResult DS28E15_22_25::readAllBlockProtection(BlockProtection (&protection)[DS28E15_BLOCKS]) +OneWireSlave::CmdResult DS28E15_22_25::readAllBlockProtection(BlockProtection (&protection)[DS28E15_BLOCKS]) const { return readAllBlockProtection<DS28E15_BLOCKS>(protection); } -OneWireSlave::CmdResult DS28E15_22_25::readAllBlockProtection(BlockProtection (&protection)[DS28E25_BLOCKS]) +OneWireSlave::CmdResult DS28E15_22_25::readAllBlockProtection(BlockProtection (&protection)[DS28E25_BLOCKS]) const { return readAllBlockProtection<DS28E25_BLOCKS>(protection); } -OneWireSlave::CmdResult DS28E15_22_25::readPersonality(Personality & personality) +OneWireSlave::CmdResult DS28E15_22_25::readPersonality(Personality & personality) const { return readStatus(true, false, 0, personality.bytes); }