Implementation of 1-Wire with added Alarm Search Functionality

Dependents:   Max32630_One_Wire_Interface

OneWireSlave.h

Committer:
IanBenzMaxim
Date:
2016-05-12
Revision:
73:2cecc1372acc
Parent:
OneWireSlave.hpp@ 49:36954b62f503
Child:
74:23be10c32fa3

File content as of revision 73:2cecc1372acc:

#ifndef _ONEWIRESLAVE_HPP
#define _ONEWIRESLAVE_HPP

#include "RomId.h"

namespace OneWire
{
  /// Base class for all 1-Wire Slaves.
  class OneWireSlave
  {
  public:
    enum CmdResult
    {
      Success,
      CommunicationError,
      TimeoutError,
      OperationFailure
    };

    /// 1-Wire ROM ID for this slave device.
    RomId romId;
  };
}

#endif