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:
141:cf38f48a2a49
Parent:
90:c233d1c265ff
--- a/Masters/OneWireMaster.h	Fri Feb 17 19:09:11 2017 +0000
+++ b/Masters/OneWireMaster.h	Fri Feb 17 21:54:14 2017 +0000
@@ -102,12 +102,12 @@
         /// Send a block of communication on the 1-Wire bus.
         /// @param[in] sendBuf Buffer to send on the 1-Wire bus.
         /// @param sendLen Length of the buffer to send.
-        virtual CmdResult OWWriteBlock(const uint8_t *sendBuf, uint8_t sendLen);
+        virtual CmdResult OWWriteBlock(const uint8_t *sendBuf, size_t sendLen);
 
         /// Receive a block of communication on the 1-Wire bus.
         /// @param[out] recvBuf Buffer to receive the data from the 1-Wire bus.
         /// @param recvLen Length of the buffer to receive.
-        virtual CmdResult OWReadBlock(uint8_t *recvBuf, uint8_t recvLen);
+        virtual CmdResult OWReadBlock(uint8_t *recvBuf, size_t recvLen);
 
         /// Set the 1-Wire bus communication speed.
         virtual CmdResult OWSetSpeed(OWSpeed newSpeed) = 0;