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:
3:644fc630f958
Parent:
2:02d228c25fd4
Child:
5:ce108eeb878d
diff -r 02d228c25fd4 -r 644fc630f958 OneWire_Masters/DS248x/ds248x.cpp
--- a/OneWire_Masters/DS248x/ds248x.cpp	Sun Jan 31 06:15:24 2016 +0000
+++ b/OneWire_Masters/DS248x/ds248x.cpp	Sun Jan 31 22:42:01 2016 +0000
@@ -772,7 +772,7 @@
                 // if the mask is 0 then go to new SerialNum byte rom_byte_number and reset mask
                 if (rom_byte_mask == 0) 
                 {
-                    calc_crc8(_rom_number[rom_byte_number]);  // accumulate the CRC
+                    OWCalc_crc8(_rom_number[rom_byte_number]);  // accumulate the CRC
                     rom_byte_number++;
                     rom_byte_mask = 1;
                 }
@@ -909,7 +909,7 @@
 
 
 //*********************************************************************
-uint8_t Ds248x::calc_crc8(uint8_t data)
+uint8_t Ds248x::OWCalc_crc8(uint8_t data)
 {
     unsigned char i;
 
@@ -932,7 +932,7 @@
 
 
 //*********************************************************************
-void Ds248x::get_rom_number(uint8_t *p_rom_buff)
+void Ds248x::OWgetROMnumber(uint8_t *p_rom_buff)
 {
     for(uint8_t idx = 0; idx < 8; idx++)
     {