Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
Diff: OneWire_Memory/Authenticators/DS28E15_22_25/DS28E15_22_25.hpp
- Revision:
- 51:a65f031e997b
- Parent:
- 50:e967f9befbd0
- Child:
- 60:e8244cbc7946
--- a/OneWire_Memory/Authenticators/DS28E15_22_25/DS28E15_22_25.hpp Mon Apr 11 14:48:43 2016 -0500 +++ b/OneWire_Memory/Authenticators/DS28E15_22_25/DS28E15_22_25.hpp Mon Apr 11 15:34:22 2016 -0500 @@ -306,19 +306,18 @@ /// @param[out] protection Receives protection status read from device. CmdResult readBlockProtection(unsigned int blockNum, BlockProtection & protection); - /// @defgroup readAllBlockProtection /// @{ /// Read the status of all memory protection blocks using the Read Status command. /// @note 1-Wire ROM selection should have already occurred. /// @param[out] protection Receives protection statuses read from device. - CmdResult readAllBlockProtection(BlockProtection (&protection)[DS28E15_BLOCKS]); - CmdResult readAllBlockProtection(BlockProtection (&protection)[DS28E25_BLOCKS]); + CmdResult readAllBlockProtection(BlockProtection (&protection)[DS28E15_BLOCKS]) const; + CmdResult readAllBlockProtection(BlockProtection (&protection)[DS28E25_BLOCKS]) const; /// @} /// Read the personality bytes using the Read Status command. /// @note 1-Wire ROM selection should have already occurred. /// @param[out] personality Receives personality read from device. - CmdResult readPersonality(Personality & personality); + CmdResult readPersonality(Personality & personality) const; /// Update the status of a memory protection block using the Write Page Protection command. /// @note 1-Wire ROM selection should have already occurred. @@ -384,8 +383,9 @@ /// @param rdbuf Buffer to receive data read from device. CmdResult readStatus(bool personality, bool allpages, unsigned int blockNum, std::uint8_t * rdbuf) const; - /// @ingroup readAllBlockProtection - template <ProtectionBlocks blocks> CmdResult readAllBlockProtection(BlockProtection (&protection)[blocks]); + /// Extends readStatus() to use the BlockProtection wrapper. + /// @see readAllBlockProtection(BlockProtection (&)[DS28E15_BLOCKS]) + template <ProtectionBlocks blocks> CmdResult readAllBlockProtection(BlockProtection (&protection)[blocks]) const; }; #endif