Library to communicate with Maxim OneWire protocol devices Modified timings and IRQ overrides

Dependents:   RdGasUseMonitor

Fork of Onewire by Simon Barker

Revision:
7:0a87f8c2d9e6
Parent:
6:d2452e9b169b
Child:
8:5d0bd95b586f
--- a/Onewire.h	Mon Oct 05 14:03:29 2015 +0000
+++ b/Onewire.h	Thu Oct 15 21:39:21 2015 +0000
@@ -9,6 +9,8 @@
 const int ONEWIRE_SEARCH_ALL_DONE = 1;
 const int ONEWIRE_SEARCH_INIT_FAIL = 2;
 const int ONEWIRE_SEARCH_NOT_FOUND = 3;
+const int ONEWIRE_SEARCH_STUCK_HIGH = 4;
+const int ONEWIRE_SEARCH_COMP_BIT_ERR = 5;
 
 class Onewire
 {
@@ -21,6 +23,7 @@
     int readByte();
     void writeByte(char data);
     unsigned char CRC(unsigned char* addr, unsigned char len);
+    char* GetErrorStr(int errCode);
 
     // Clear the search state so that if will start from the beginning again.
     void reset_search();