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

Superseded by MaximInterface.

Committer:
IanBenzMaxim
Date:
Tue Mar 22 15:18:00 2016 -0500
Revision:
25:bdb1c5a53b58
Child:
49:36954b62f503
Added support for DS28E15/22/25. Added OneWireSlave class used by DS28E15_22_25 as a starting point for a slave base class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IanBenzMaxim 25:bdb1c5a53b58 1 #ifndef _ONEWIRESLAVE_HPP
IanBenzMaxim 25:bdb1c5a53b58 2 #define _ONEWIRESLAVE_HPP
IanBenzMaxim 25:bdb1c5a53b58 3
IanBenzMaxim 25:bdb1c5a53b58 4 #include "RomId.hpp"
IanBenzMaxim 25:bdb1c5a53b58 5
IanBenzMaxim 25:bdb1c5a53b58 6 class OneWireSlave
IanBenzMaxim 25:bdb1c5a53b58 7 {
IanBenzMaxim 25:bdb1c5a53b58 8 public:
IanBenzMaxim 25:bdb1c5a53b58 9 enum CmdResult
IanBenzMaxim 25:bdb1c5a53b58 10 {
IanBenzMaxim 25:bdb1c5a53b58 11 Success,
IanBenzMaxim 25:bdb1c5a53b58 12 CommunicationError,
IanBenzMaxim 25:bdb1c5a53b58 13 TimeoutError,
IanBenzMaxim 25:bdb1c5a53b58 14 OperationFailure
IanBenzMaxim 25:bdb1c5a53b58 15 };
IanBenzMaxim 25:bdb1c5a53b58 16
IanBenzMaxim 25:bdb1c5a53b58 17 RomId romId;
IanBenzMaxim 25:bdb1c5a53b58 18 };
IanBenzMaxim 25:bdb1c5a53b58 19
IanBenzMaxim 25:bdb1c5a53b58 20 #endif