1-Wire® library for mbed. Complete 1-Wire library that supports our silicon masters along with a bit-bang master on the MAX32600MBED platform with one common interface for mbed. Slave support has also been included and more slaves will be added as time permits.

Dependents:   MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more

Embed: (wiki syntax)

« Back to documentation index

OneWireSlave Class Reference

OneWireSlave Class Reference

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

#include <OneWireSlave.h>

Inherited by DS18B20, DS1920, DS2413, DS2431, DS28E15_22_25, and DS28E17.

Public Member Functions

RomId romId () const

Protected Member Functions

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

Detailed Description

Base class for all 1-Wire Slaves.

Definition at line 45 of file OneWireSlave.h.


Constructor & Destructor Documentation

OneWireSlave ( RandomAccessRomIterator selector ) [protected]
Parameters:
selectorProvides 1-Wire ROM selection and bus access.

Definition at line 69 of file OneWireSlave.h.


Member Function Documentation

OneWireMaster& master (  ) const [protected]

The 1-Wire master for this slave device.

Definition at line 77 of file OneWireSlave.h.

RomId romId (  ) const

1-Wire ROM ID for this slave device.

Definition at line 59 of file OneWireSlave.h.

OneWireMaster::CmdResult selectDevice (  ) const [protected]

Select this slave device by ROM ID.

Definition at line 74 of file OneWireSlave.h.