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:
5:ce108eeb878d
Parent:
3:644fc630f958
Child:
13:d1bdb03703de
--- a/OneWire_Masters/DS2480B/ds2480b.cpp	Tue Feb 02 21:34:27 2016 +0000
+++ b/OneWire_Masters/DS2480B/ds2480b.cpp	Tue Feb 09 03:30:22 2016 +0000
@@ -155,6 +155,20 @@
 
 
 //*********************************************************************
+void Ds2480b::OWWriteBlock(const uint8_t *tran_buf, uint8_t tran_len)
+{
+    //TODO
+}
+    
+    
+//*********************************************************************
+void Ds2480b::OWReadBlock(uint8_t *recv_buf, uint8_t recv_len)
+{
+    //TODO
+}
+
+
+//*********************************************************************
 bool Ds2480b::OWFirst(void)
 {
     bool rtn_val;
@@ -213,7 +227,73 @@
 
 
 //*********************************************************************
-uint8_t Ds2480b::OWSpeed(uint8_t new_speed)
+bool Ds2480b::OWReadROM(void)
+{
+    bool rtn_val;
+    
+    //TODO
+    
+    return rtn_val;
+}
+    
+
+//*********************************************************************    
+bool Ds2480b::OWSkipROM(void)
+{
+    bool rtn_val;
+    
+    //TODO
+    
+    return rtn_val;
+}
+    
+
+//*********************************************************************    
+bool Ds2480b::OWMatchROM(void)
+{
+    bool rtn_val;
+    
+    //TODO
+    
+    return rtn_val;
+}
+    
+
+//*********************************************************************    
+bool Ds2480b::OWOverdriveSkipROM(void)
+{
+    bool rtn_val;
+    
+    //TODO
+    
+    return rtn_val;
+}
+    
+
+//*********************************************************************    
+bool Ds2480b::OWOverdriveMatchROM(void)
+{
+    bool rtn_val;
+    
+    //TODO
+    
+    return rtn_val;
+}
+    
+
+//*********************************************************************    
+bool Ds2480b::OWResume(void)
+{
+    bool rtn_val;
+    
+    //TODO
+    
+    return rtn_val;
+}
+
+
+//*********************************************************************
+uint8_t Ds2480b::OWSpeed(OW_SPEED new_speed)
 {
     uint8_t rtn_val;
     
@@ -224,7 +304,7 @@
 
 
 //*********************************************************************
-uint8_t Ds2480b::OWLevel(uint8_t new_level)
+uint8_t Ds2480b::OWLevel(OW_LEVEL new_level)
 {
     uint8_t rtn_val;
     
@@ -257,18 +337,7 @@
 
 
 //*********************************************************************
-uint8_t Ds2480b::OWCalc_crc8(uint8_t data)
+const uint8_t (&Ds2480b::OWgetROMnumber() const)[ROMnumberLen]
 {
-    uint8_t rtn_val;
-    
-    //TODO
-    
-    return(rtn_val);
+    return _rom_number;
 }
-
-
-//*********************************************************************
-void Ds2480b::OWgetROMnumber(uint8_t *p_rom_buff)
-{
-    //TODO
-}