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 Aug 09 12:35:22 2016 -0500
Revision:
113:13e2865603df
Child:
139:f0e0a7976846
Begin splitting DS28E15_22_25 into separate classes.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IanBenzMaxim 113:13e2865603df 1 /******************************************************************//**
IanBenzMaxim 113:13e2865603df 2 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
IanBenzMaxim 113:13e2865603df 3 *
IanBenzMaxim 113:13e2865603df 4 * Permission is hereby granted, free of charge, to any person obtaining a
IanBenzMaxim 113:13e2865603df 5 * copy of this software and associated documentation files (the "Software"),
IanBenzMaxim 113:13e2865603df 6 * to deal in the Software without restriction, including without limitation
IanBenzMaxim 113:13e2865603df 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
IanBenzMaxim 113:13e2865603df 8 * and/or sell copies of the Software, and to permit persons to whom the
IanBenzMaxim 113:13e2865603df 9 * Software is furnished to do so, subject to the following conditions:
IanBenzMaxim 113:13e2865603df 10 *
IanBenzMaxim 113:13e2865603df 11 * The above copyright notice and this permission notice shall be included
IanBenzMaxim 113:13e2865603df 12 * in all copies or substantial portions of the Software.
IanBenzMaxim 113:13e2865603df 13 *
IanBenzMaxim 113:13e2865603df 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
IanBenzMaxim 113:13e2865603df 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
IanBenzMaxim 113:13e2865603df 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IanBenzMaxim 113:13e2865603df 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
IanBenzMaxim 113:13e2865603df 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
IanBenzMaxim 113:13e2865603df 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
IanBenzMaxim 113:13e2865603df 20 * OTHER DEALINGS IN THE SOFTWARE.
IanBenzMaxim 113:13e2865603df 21 *
IanBenzMaxim 113:13e2865603df 22 * Except as contained in this notice, the name of Maxim Integrated
IanBenzMaxim 113:13e2865603df 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
IanBenzMaxim 113:13e2865603df 24 * Products, Inc. Branding Policy.
IanBenzMaxim 113:13e2865603df 25 *
IanBenzMaxim 113:13e2865603df 26 * The mere transfer of this software does not imply any licenses
IanBenzMaxim 113:13e2865603df 27 * of trade secrets, proprietary technology, copyrights, patents,
IanBenzMaxim 113:13e2865603df 28 * trademarks, maskwork rights, or any other form of intellectual
IanBenzMaxim 113:13e2865603df 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
IanBenzMaxim 113:13e2865603df 30 * ownership rights.
IanBenzMaxim 113:13e2865603df 31 **********************************************************************/
IanBenzMaxim 113:13e2865603df 32
IanBenzMaxim 113:13e2865603df 33 #ifndef OneWire_Authenticators_DS28E25
IanBenzMaxim 113:13e2865603df 34 #define OneWire_Authenticators_DS28E25
IanBenzMaxim 113:13e2865603df 35
IanBenzMaxim 113:13e2865603df 36 #include "DS28E15_22_25.h"
IanBenzMaxim 113:13e2865603df 37
IanBenzMaxim 113:13e2865603df 38 namespace OneWire
IanBenzMaxim 113:13e2865603df 39 {
IanBenzMaxim 113:13e2865603df 40 /// Interface to the DS28E25 and DS28EL25 (low power) authenticators.
IanBenzMaxim 113:13e2865603df 41 class DS28E25 : public DS28E15_22_25
IanBenzMaxim 113:13e2865603df 42 {
IanBenzMaxim 113:13e2865603df 43 public:
IanBenzMaxim 113:13e2865603df 44 /// @param owMaster 1-Wire Master to use for communication with DS28E15.
IanBenzMaxim 113:13e2865603df 45 /// @param lowVoltage Enable low voltage timing.
IanBenzMaxim 113:13e2865603df 46 DS28E25(RandomAccessRomIterator & selector, bool lowVoltage = false)
IanBenzMaxim 113:13e2865603df 47 : DS28E15_22_25(selector, lowVoltage, DS28E25_Family) { }
IanBenzMaxim 113:13e2865603df 48 };
IanBenzMaxim 113:13e2865603df 49 }
IanBenzMaxim 113:13e2865603df 50
IanBenzMaxim 113:13e2865603df 51 #endif