Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
Diff: OneWire_Masters/DS2480B/ds2480b.cpp
- Revision:
- 71:562f5c702094
- Parent:
- 67:76776130aec9
- Child:
- 72:6892702709ee
--- a/OneWire_Masters/DS2480B/ds2480b.cpp Mon May 09 08:31:53 2016 -0500 +++ b/OneWire_Masters/DS2480B/ds2480b.cpp Mon May 09 15:04:23 2016 -0500 @@ -490,38 +490,6 @@ //********************************************************************* -OneWireMaster::CmdResult Ds2480b::OWWriteBlock(const uint8_t *tran_buf, uint8_t tran_len) -{ - OneWireMaster::CmdResult result; - uint8_t idx = 0; - - do - { - result = OWWriteByte(tran_buf[idx++], OneWireMaster::LEVEL_NORMAL); - } - while((result == OneWireMaster::Success) && (idx < tran_len)); - - return result; -} - - -//********************************************************************* -OneWireMaster::CmdResult Ds2480b::OWReadBlock(uint8_t *rx_buf, uint8_t rx_len) -{ - OneWireMaster::CmdResult result; - uint8_t idx = 0; - - do - { - result = OWReadByte(rx_buf[idx++], OneWireMaster::LEVEL_NORMAL); - } - while((result == OneWireMaster::Success) && (idx < rx_len)); - - return result; -} - - -//********************************************************************* OneWireMaster::CmdResult Ds2480b::OWSetSpeed(OWSpeed new_speed) { OneWireMaster::CmdResult result = OneWireMaster::OperationFailure; @@ -1016,4 +984,4 @@ { return ((buf[nbyt] >> nbit) & 0x01); } -} \ No newline at end of file +}