pl ack in tmtc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by shubham c

Revision:
102:80c911a6e736
Parent:
95:42d6747900cb
Child:
118:60c5de4cb8ad
Child:
128:a232a4352664
--- a/COM_SND_TM.h	Tue Jan 26 13:15:01 2016 +0000
+++ b/COM_SND_TM.h	Fri Jan 29 17:09:41 2016 +0000
@@ -103,7 +103,7 @@
         type0_no = 0;
         type1_no = 0;
         while(head != NULL){
-            switch( GETshort_or_long_tm(head->fields) ){
+            switch( GETshort_or_long_tm(head) ){
                 case 0:
                     type0_no++;
                     break;
@@ -128,11 +128,11 @@
     }
  
 #define next_type_structure(ptr){\
-        unsigned char temp = GETshort_or_long_tm(ptr->fields);\
+        unsigned char temp = GETshort_or_long_tm(ptr);\
         if((temp == 0) && (ptr->next_TM != NULL) ){\
             do{\
                 ptr = ptr->next_TM;\
-                temp =  GETshort_or_long_tm(ptr->fields);\
+                temp =  GETshort_or_long_tm(ptr);\
             }\
             while(temp == 1 && ptr->next_TM != NULL);\
             if(temp == 1){\
@@ -142,7 +142,7 @@
         else if((temp == 1) && (ptr->next_TM != NULL)){\
             do{\
                 ptr = ptr->next_TM;\
-                temp = GETshort_or_long_tm(ptr->fields);\
+                temp = GETshort_or_long_tm(ptr);\
             }\
             while(temp == 0 && ptr->next_TM != NULL);\
             if(temp == 0){\
@@ -165,7 +165,7 @@
     #define first_type_structure( type,return_ptr) {\
         Base_tm* temp_ptr = head_ptr;\
         if(type == 0){\
-            while(GETshort_or_long_tm(temp_ptr->fields) == 1){\
+            while(GETshort_or_long_tm(temp_ptr) == 1){\
                 temp_ptr = temp_ptr->next_TM;\
                 if(temp_ptr == NULL){\
                     return_ptr = NULL ;\
@@ -173,7 +173,7 @@
             }\
         }\
         else if(type == 1){\
-            while(GETshort_or_long_tm(temp_ptr->fields) == 0){\
+            while(GETshort_or_long_tm(temp_ptr) == 0){\
                 temp_ptr = temp_ptr->next_TM;\
                 if(temp_ptr == NULL){\
                     return_ptr = NULL;\