]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update of errors/status
authorhadaq <hadaq>
Wed, 23 Dec 2009 20:53:24 +0000 (20:53 +0000)
committerhadaq <hadaq>
Wed, 23 Dec 2009 20:53:24 +0000 (20:53 +0000)
.

libtrbnet/trberror.c

index 062aef4d73092a739efba8ef12e27ecac450981f..e1381fc8c4649fed550e69d7cd002d23f076a2db 100644 (file)
@@ -65,23 +65,29 @@ const char* trb_strerror(int trberrno)
 const char* trb_strterm(TRB_TERM term)
 {
   static const char commonStatusBits[16][64] = { 
-    "COM_Endpoint not reached",                         /* error */
-    "COM_Coll: collision detected",                     /* error */
-    "COM_WordMiss: word missing",                       /* error */
-    "COM_Checksum: checksum error",                 /* status, at the moment */
-    "COM_DontKnow: dont understand",                    /* error */
-    "COM_BufferMatch: buffer mismatch",                 /* error */
-    "", "", "", "", "", "", "", "", "", ""          
+    "COM_EndpointReached: no endpoint has been reached",         /* error */
+    "COM_Collision: collision has been detected",                /* error */
+    "COM_WordMissing: mismatch of packet counters (EOB)",        /* error */
+    "COM_Checksum: checksum error",              /* status, at the moment */
+    "COM_DontUnderstand: endpoint doesn't understand data",      /* error */
+    "COM_BufferMismatch: buffer numbers (EOB and ACK) mismatch", /* error */
+    "COM_AnswerMissing: One endpoint didn't react",              /* error */ 
+    "", "", "", "", "", "", "", "", ""
   };
   
   static const char ch0StatusBits[16][64] = { 
-    "Ch0_TrigCtr: trigger counter mismatch",        /* status */
-    "",                                             
-    "",                                             
-    "",                                             
-    "Ch0_BufferHalfFull: data-buffers half full",   /* status */
-    "Ch0_BuffersFull: data-buffers almost full"     /* status */
-    "", "", "", "", "", "", "", "", "", ""
+    "Ch0_TrigCtr: trigger counter mismatch",         /* status */
+    "Ch0_TrigMissing: timing trigger missing",       /* status */
+    "",
+    "",
+    "",
+    "",
+    "",
+    "",
+    "Ch0_BufferHalfFull: data-buffers half full",    /* status */
+    "Ch0_BuffersFull: data-buffers almost full",     /* status */
+    "Ch0_NotConfigured: endpoint is not configured", /* status */
+    "", "", "", "", ""
   };
   
   static const char ch1StatusBits[16][64] = {  
@@ -107,8 +113,8 @@ const char* trb_strterm(TRB_TERM term)
   
   static const char ch3StatusBits[16][64] = { 
     "Ch3_Address: unknown address",                  /* error  */
-    "Ch3_TimeOut: timeout error",                    /* error  */
-    "Ch3_NoData: no more data"                       /* status */
+    "Ch3_Timeout: timeout error",                    /* error  */
+    "Ch3_NoMoreData: no more data"                   /* status */
     "", "", "", "", "", "", "", "", "", "", "", "", ""
   };