![]() |
OneWire Library for Arduino
version: 1.0.0
|
Iterates through all 1-Wire devices sequentially using the search procedure. More...
#include <RomIterator.h>
Public Member Functions | |
ForwardSearchRomIterator (OneWireMaster &master) | |
const RomId & | selectedDevice () const |
ROM ID of the currently selected device. More... | |
virtual bool | lastDevice () const |
Indicates that current device is the last. More... | |
virtual OneWireMaster::CmdResult | selectFirstDevice () |
Select the first device in the sequence. More... | |
virtual OneWireMaster::CmdResult | selectNextDevice () |
Select the next device in the sequence. More... | |
virtual OneWireMaster::CmdResult | reselectCurrentDevice () |
Reselect the current device for an additional operation. More... | |
OneWireMaster::CmdResult | selectFirstDeviceInFamily (uint8_t familyCode) |
OneWireMaster::CmdResult | selectNextFamilyDevice () |
![]() | |
ForwardRomIterator (OneWireMaster &master) | |
![]() | |
virtual | ~RomIterator () |
OneWireMaster & | master () const |
The 1-Wire master used to issue ROM commands. More... | |
Protected Attributes | |
RomCommands::SearchState | searchState |
Additional Inherited Members | |
![]() | |
RomIterator (OneWireMaster &master) | |
Iterates through all 1-Wire devices sequentially using the search procedure.
|
inline |
master | 1-Wire master to use to issue ROM commands. |
|
virtual |
Indicates that current device is the last.
Implements OneWire::ForwardRomIterator.
|
virtual |
Reselect the current device for an additional operation.
Implements OneWire::ForwardRomIterator.
|
inline |
ROM ID of the currently selected device.
|
virtual |
Select the first device in the sequence.
Implements OneWire::ForwardRomIterator.
OneWireMaster::CmdResult ForwardSearchRomIterator::selectFirstDeviceInFamily | ( | uint8_t | familyCode | ) |
Select the first device in the sequence beginning with the given family.
familyCode | Family code to select. |
|
virtual |
Select the next device in the sequence.
Implements OneWire::ForwardRomIterator.
OneWireMaster::CmdResult ForwardSearchRomIterator::selectNextFamilyDevice | ( | ) |
Select the first device in the next sequential family skipping all remaining devices in the current family.
|
protected |