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.

Revision:
17:b646b1e3970b
Parent:
16:883becbd85f8
Child:
23:e8e403d61359
--- a/OneWire_Masters/DS2480B/ds2480b.h	Wed Mar 16 19:10:19 2016 +0000
+++ b/OneWire_Masters/DS2480B/ds2480b.h	Fri Mar 18 20:21:05 2016 +0000
@@ -1,16 +1,4 @@
 /******************************************************************//**
-* @file ds2480b.h
-*
-* @author Justin Jordan
-*
-* @version 0.0.0
-*
-* Started: 31JAN16
-*
-* Updated: 
-*
-* @brief Header file for DS2480B Async Serial to 1-wire master
-***********************************************************************
 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
@@ -103,25 +91,29 @@
     //Part of OneWireInterface that should be implemented for each master
     //See OneWireInterface.h for documentation
     
-    virtual bool OWInitMaster();
+    virtual OneWireInterface::CmdResult OWInitMaster(void);
     
-    virtual bool OWReset();
+    virtual OneWireInterface::CmdResult OWReset(void);
     
-    virtual uint8_t OWTouchBit(uint8_t sendbit);
+    virtual OneWireInterface::CmdResult OWTouchBit(uint8_t & sendrecvbit);
+
+    virtual OneWireInterface::CmdResult OWWriteByte(uint8_t sendbyte);
 
-    virtual bool OWWriteByte(uint8_t sendbyte);
-
-    virtual uint8_t OWReadByte(void);
+    virtual OneWireInterface::CmdResult OWReadByte(uint8_t & recvbyte);
+    
+    virtual OneWireInterface::CmdResult OWWriteBlock(const uint8_t *tran_buf, uint8_t tran_len);
     
-    virtual bool OWSearch(void);
+    virtual OneWireInterface::CmdResult OWReadBlock(uint8_t *rx_buf, uint8_t rx_len);
+    
+    virtual OneWireInterface::CmdResult OWSearch(RomId & romId);
 
-    virtual uint8_t OWSpeed(OW_SPEED new_speed);
+    virtual OneWireInterface::CmdResult OWSpeed(OW_SPEED new_speed);
 
-    virtual uint8_t OWLevel(OW_LEVEL new_level);
+    virtual OneWireInterface::CmdResult OWLevel(OW_LEVEL new_level);
 
-    virtual bool OWWriteBytePower(uint8_t sendbyte);
+    virtual OneWireInterface::CmdResult OWWriteBytePower(uint8_t sendbyte);
 
-    virtual bool OWReadBitPower(uint8_t applyPowerResponse);
+    virtual OneWireInterface::CmdResult OWReadBitPower(uint8_t applyPowerResponse);
     
     private: