pl ack in tmtc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by shubham c

Revision:
5:ab276a17ca07
Parent:
4:104dd82c99b8
Child:
6:79d422d1ed42
--- a/DefinitionsAndGlobals.h	Tue Dec 29 06:50:19 2015 +0000
+++ b/DefinitionsAndGlobals.h	Wed Dec 30 06:36:38 2015 +0000
@@ -1,6 +1,6 @@
 // **************DEFINITIONS*********************
 // COM_RX
-    #define RX_TIMEOUT_LIMIT 3
+    #define RX_TIMEOUT_LIMIT 0.5
     #define COM_RX_UART_TX USBTX
     #define COM_RX_UART_RX USBRX
 
@@ -20,15 +20,10 @@
 
 // TC LIST
     #define TCL_STATE_INCOMPLETE 0x00
-    #define TCL_STATE_EXECUTING 0x01
-    #define TCL_STATE_COMPLETED 0x03
-    #define TCL_STATE_ABORTED 0x02
-    /*
-    0: IDLE OR WAITING FOR TCL COMPLETION
-    1: EXECUTING AFTER COMPLETION OF TCL
-    2: COMPLETED EXECUTION OF TCL
-    3: IDLE DUE TO ABORT ON NACK
-    */
+    #define TCL_STATE_ABORTED 0x03
+    #define TCL_STATE_EXECUTING 0x04   
+    #define TCL_STATE_COMPLETED 0x05
+    #define TCL_STATE_EXCEEDED_LIMIT 0x06
 
 // LIST OF FLAGS
     #define UART_INT_FLAG 0x0001
@@ -51,6 +46,7 @@
     #define COM_PA_COOLING_TIME_LIMIT 20
     #define COM_MAX_TC_LIMIT 200
     #define TM_ACK_CODE_INDEX 2
+    #define CRC_FAIL_NACK_CODE 0x01
     
     // call sign
     #define PSC_CALLSIGN 0x00