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

ForwardSearchRomIterator Class Reference

ForwardSearchRomIterator Class Reference

Iterates through all 1-Wire devices sequentially using the search procedure. More...

#include <RomIterator.h>

Inherits OneWire::ForwardRomIterator.

Public Member Functions

 ForwardSearchRomIterator (OneWireMaster &master)
const RomIdselectedDevice () const
 ROM ID of the currently selected device.
virtual bool lastDevice () const
 Indicates that current device is the last.
virtual OneWireMaster::CmdResult selectFirstDevice ()
 Select the first device in the sequence.
virtual OneWireMaster::CmdResult selectNextDevice ()
 Select the next device in the sequence.
virtual OneWireMaster::CmdResult reselectCurrentDevice ()
 Reselect the current device for an additional operation.
OneWireMaster::CmdResult selectFirstDeviceInFamily (uint8_t familyCode)
 Select the first device in the sequence beginning with the given family.
OneWireMaster::CmdResult selectNextFamilyDevice ()
 Select the first device in the next sequential family skipping all remaining devices in the current family.
OneWireMastermaster () const
 The 1-Wire master used to issue ROM commands.

Detailed Description

Iterates through all 1-Wire devices sequentially using the search procedure.

Definition at line 81 of file RomIterator.h.


Constructor & Destructor Documentation

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

Definition at line 88 of file RomIterator.h.


Member Function Documentation

bool lastDevice (  ) const [virtual]

Indicates that current device is the last.

Implements ForwardRomIterator.

Definition at line 39 of file RomIterator.cpp.

OneWireMaster& master (  ) const [inherited]

The 1-Wire master used to issue ROM commands.

Definition at line 57 of file RomIterator.h.

OneWireMaster::CmdResult reselectCurrentDevice (  ) [virtual]

Reselect the current device for an additional operation.

Implements ForwardRomIterator.

Definition at line 54 of file RomIterator.cpp.

const RomId& selectedDevice (  ) const

ROM ID of the currently selected device.

Definition at line 91 of file RomIterator.h.

OneWireMaster::CmdResult selectFirstDevice (  ) [virtual]

Select the first device in the sequence.

Implements ForwardRomIterator.

Definition at line 44 of file RomIterator.cpp.

OneWireMaster::CmdResult selectFirstDeviceInFamily ( uint8_t  familyCode )

Select the first device in the sequence beginning with the given family.

Parameters:
familyCodeFamily code to select.

Definition at line 59 of file RomIterator.cpp.

OneWireMaster::CmdResult selectNextDevice (  ) [virtual]

Select the next device in the sequence.

Implements ForwardRomIterator.

Definition at line 49 of file RomIterator.cpp.

OneWireMaster::CmdResult selectNextFamilyDevice (  )

Select the first device in the next sequential family skipping all remaining devices in the current family.

Definition at line 65 of file RomIterator.cpp.