Maxim Integrated / OneWire

Dependents:   MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more

Embed: (wiki syntax)

« Back to documentation index

ForwardRomIterator Class Reference

ForwardRomIterator Class Reference

Iterates through all 1-Wire devices in a sequential first to last order. More...

#include <RomIterator.h>

Inherits OneWire::RomIterator.

Inherited by ForwardSearchRomIterator.

Public Member Functions

 ForwardRomIterator (OneWireMaster &master)
virtual bool lastDevice () const =0
 Indicates that current device is the last.
virtual OneWireMaster::CmdResult selectFirstDevice ()=0
 Select the first device in the sequence.
virtual OneWireMaster::CmdResult selectNextDevice ()=0
 Select the next device in the sequence.
virtual OneWireMaster::CmdResult reselectCurrentDevice ()=0
 Reselect the current device for an additional operation.
OneWireMastermaster () const
 The 1-Wire master used to issue ROM commands.

Detailed Description

Iterates through all 1-Wire devices in a sequential first to last order.

Definition at line 61 of file RomIterator.h.


Constructor & Destructor Documentation

Parameters:
master1-Wire master to use to issue ROM commands.

Definition at line 65 of file RomIterator.h.


Member Function Documentation

virtual bool lastDevice (  ) const [pure virtual]

Indicates that current device is the last.

Implemented in ForwardSearchRomIterator.

OneWireMaster& master (  ) const [inherited]

The 1-Wire master used to issue ROM commands.

Definition at line 57 of file RomIterator.h.

virtual OneWireMaster::CmdResult reselectCurrentDevice (  ) [pure virtual]

Reselect the current device for an additional operation.

Implemented in ForwardSearchRomIterator.

virtual OneWireMaster::CmdResult selectFirstDevice (  ) [pure virtual]

Select the first device in the sequence.

Implemented in ForwardSearchRomIterator.

virtual OneWireMaster::CmdResult selectNextDevice (  ) [pure virtual]

Select the next device in the sequence.

Implemented in ForwardSearchRomIterator.