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: 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); }