Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
Diff: Masters/OneWireMaster.h
- Revision:
- 141:cf38f48a2a49
- Parent:
- 90:c233d1c265ff
diff -r 6f32bf635c9d -r cf38f48a2a49 Masters/OneWireMaster.h --- 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;