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/DS248x/DS248x.cpp
- Revision:
- 79:7f22823a5a2d
- Parent:
- 78:0cbbac7f2016
- Child:
- 84:708b7be59fb2
--- a/Masters/DS248x/DS248x.cpp Mon May 16 15:18:09 2016 -0500 +++ b/Masters/DS248x/DS248x.cpp Mon May 23 18:57:12 2016 -0500 @@ -539,8 +539,8 @@ OneWireMaster::CmdResult DS248x::sendCommand(Command cmd, uint8_t param) const { CmdResult result; - char buf[2] = { cmd, param }; - if (m_p_i2c_bus->write(m_adrs, buf, 2) == I2C_WRITE_OK) + uint8_t buf[2] = { cmd, param }; + if (m_p_i2c_bus->write(m_adrs, reinterpret_cast<const char *>(buf), 2) == I2C_WRITE_OK) { result = Success; }