OneWire Library for Arduino  version: 1.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
OneWire::OneWireSlave Class Reference

Base class for all 1-Wire Slaves. More...

#include <OneWireSlave.h>

Inheritance diagram for OneWire::OneWireSlave:
OneWire::DS18B20 OneWire::DS1920 OneWire::DS2413 OneWire::DS2431 OneWire::DS28E17

Public Types

enum  CmdResult {
  Success, CommunicationError, CrcError, TimeoutError,
  OperationFailure
}
 

Public Member Functions

RomId romId () const
 
void setRomId (const RomId &romId)
 

Protected Member Functions

 OneWireSlave (RandomAccessRomIterator &selector)
 
OneWireMaster::CmdResult selectDevice () const
 Select this slave device by ROM ID. More...
 
OneWireMastermaster () const
 The 1-Wire master for this slave device. More...
 

Detailed Description

Base class for all 1-Wire Slaves.

Member Enumeration Documentation

Enumerator
Success 
CommunicationError 
CrcError 
TimeoutError 
OperationFailure 

Constructor & Destructor Documentation

OneWire::OneWireSlave::OneWireSlave ( RandomAccessRomIterator selector)
inlineprotected
Parameters
selectorProvides 1-Wire ROM selection and bus access.

Member Function Documentation

OneWireMaster& OneWire::OneWireSlave::master ( ) const
inlineprotected

The 1-Wire master for this slave device.

RomId OneWire::OneWireSlave::romId ( ) const
inline

1-Wire ROM ID for this slave device.

OneWireMaster::CmdResult OneWire::OneWireSlave::selectDevice ( ) const
inlineprotected

Select this slave device by ROM ID.

void OneWire::OneWireSlave::setRomId ( const RomId romId)
inline

The documentation for this class was generated from the following file: