OneWire Library for Arduino  version: 1.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
OneWire::RomCommands::SearchState Struct Reference

State used by all ROM ID search functions. More...

#include <RomCommands.h>

Public Member Functions

void reset ()
 Reset to the search state to start at the beginning. More...
 
void findFamily (uint8_t familyCode)
 
void skipCurrentFamily ()
 
 SearchState ()
 

Public Attributes

RomId romId
 
uint8_t last_discrepancy
 
uint8_t last_family_discrepancy
 
bool last_device_flag
 

Detailed Description

State used by all ROM ID search functions.

Constructor & Destructor Documentation

OneWire::RomCommands::SearchState::SearchState ( )
inline

Member Function Documentation

void OneWire::RomCommands::SearchState::findFamily ( uint8_t  familyCode)

Setup the search to find the device type 'family_code' on the next call to OWNext() if it is present.

void OneWire::RomCommands::SearchState::reset ( void  )

Reset to the search state to start at the beginning.

void OneWire::RomCommands::SearchState::skipCurrentFamily ( )

Setup the search to skip the current device type on the next call to OWNext().

Member Data Documentation

bool OneWire::RomCommands::SearchState::last_device_flag
uint8_t OneWire::RomCommands::SearchState::last_discrepancy
uint8_t OneWire::RomCommands::SearchState::last_family_discrepancy
RomId OneWire::RomCommands::SearchState::romId

The documentation for this struct was generated from the following files: