CDMS_CODE_samp_23SEP_DMA_flag

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE_samp_23SEP_DMA by iitm sat

Revision:
35:3beac900a034
Parent:
34:f0b518523381
Child:
36:d1424f871de1
diff -r f0b518523381 -r 3beac900a034 Structures.h
--- a/Structures.h	Wed Jan 06 21:23:42 2016 +0000
+++ b/Structures.h	Thu Jan 07 10:35:40 2016 +0000
@@ -49,6 +49,10 @@
 #define GETapid(x) ( ( (x->TC_string[1]) & 0xA0 ) >> 6 )
 #define GETexec_status(x) ( (x->flags) & EXEC_STATUS_MASK )
 #define GETpacket_seq_count(x) (x->TC_string[0])
+#define GETservice_type(x) ( (x->TC_string[2]) & 0xF0 )
+#define GETservice_subtype(x) ( (x->TC_string[2]) & 0x0F )
+#define GETpid(x) (x->TC_string[3])
+
 
 //x should be a Base_tc pointer
 //y should be a 8-bit number with relevant data in LSB