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:
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