Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more
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 RomId & | selectedDevice () 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. | |
OneWireMaster & | master () 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
ForwardSearchRomIterator | ( | OneWireMaster & | master ) |
- Parameters:
-
master 1-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:
-
familyCode Family 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.
Generated on Tue Jul 12 2022 15:46:21 by
