ADF7023

Dependencies:   mbed

Revision:
0:b6284367b05d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jul 09 06:52:35 2015 +0000
@@ -0,0 +1,11 @@
+#include 
+
+int tm_ack(char* ptr){
+    
+    int tm_ack = *(ptr + sizeof(char)*3);
+//    tm_ack &= 0x60;//Ack or Nack can be decided just by checking [5:6] bits
+    if(tm_ack== 0xE0|| tm_ack==0xA0|| tm_ack==0xC0 )
+        return 1;
+    else
+        return 0; 
+    }
\ No newline at end of file