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: Masters/OneWireMaster.cpp
- Revision:
- 120:200109b73e3c
- Parent:
- 104:3f48daed532b
- Child:
- 139:f0e0a7976846
diff -r d184e69051ad -r 200109b73e3c Masters/OneWireMaster.cpp --- a/Masters/OneWireMaster.cpp Mon Aug 22 21:48:41 2016 +0000 +++ b/Masters/OneWireMaster.cpp Tue Sep 06 09:25:52 2016 -0500 @@ -39,7 +39,7 @@ { OneWireMaster::CmdResult OneWireMaster::OWWriteBlock(const uint8_t *sendBuf, uint8_t sendLen) { - CmdResult result; + CmdResult result = OperationFailure; for (uint8_t idx = 0; idx < sendLen; idx++) { @@ -55,7 +55,7 @@ OneWireMaster::CmdResult OneWireMaster::OWReadBlock(uint8_t *recvBuf, uint8_t recvLen) { - CmdResult result; + CmdResult result = OperationFailure; for (uint8_t idx = 0; idx < recvLen; idx++) {