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: Slaves/RomIterator.h
- Revision:
- 90:c233d1c265ff
- Parent:
- 89:3a0e12c9b898
diff -r 3a0e12c9b898 -r c233d1c265ff Slaves/RomIterator.h --- a/Slaves/RomIterator.h Thu Jun 16 10:45:24 2016 -0500 +++ b/Slaves/RomIterator.h Fri Jun 17 15:24:37 2016 -0500 @@ -34,10 +34,12 @@ #define OneWire_RomIterator #include <stdint.h> -#include "Masters/OneWireMaster.h" +#include "RomCommands.h" namespace OneWire { + class OneWireMaster; + /// Controls selection of 1-Wire devices on the bus through ROM commands. class RomIterator { @@ -79,7 +81,7 @@ class ForwardSearchRomIterator : public ForwardRomIterator { protected: - OneWireMaster::SearchState searchState; + RomCommands::SearchState searchState; public: /// @param master 1-Wire master to use to issue ROM commands. @@ -121,7 +123,7 @@ SingledropRomIterator(OneWireMaster & master) : RandomAccessRomIterator(master) { } /// Select the one and only device. - OneWireMaster::CmdResult selectDevice() { return master().OWSkipRom(); } + OneWireMaster::CmdResult selectDevice() { return RomCommands::OWSkipRom(master()); } virtual OneWireMaster::CmdResult selectDevice(const RomId & romId); };