WizziLab / modem_ref

Dependents:   modem_ref_helper

Revision:
26:2c934a269914
Parent:
19:701d5669f2e9
Child:
30:74aa36420c61
--- a/include/d7a_1x.h	Tue Feb 27 11:05:38 2018 +0000
+++ b/include/d7a_1x.h	Mon Mar 05 09:55:27 2018 +0000
@@ -293,8 +293,9 @@
     D7A_RESP_RFU_1,
     /// No response requested, repeat 3 times
     D7A_RESP_NO_RPT,
-    /// Get all responses in response period, only Responders having not received packets respond
-    D7A_RESP_ON_ERR,
+    /// Get all responses in response period, only Responders having non void 
+    /// ACK response template or upper layer reponse payload
+    D7A_RESP_ON_DATA,
     /// Get at least one acknowledgement per request during response period. 
     /// Stick to a single responder when possible
     D7A_RESP_PREFERRED,
@@ -316,10 +317,8 @@
         u8 resp         : 3;
         /// Retry mode
         u8 retry        : 3;
-        /// Responder has to keep the ACK template (TPL status file)
-        u8 record       : 1;
-         /// Stop D7ASP on not acknowledged request
-        u8 stop_on_err  : 1;
+        /// RFU
+        u8 rfu          : 2;
 
     } bf;
 
@@ -439,6 +438,36 @@
 } d7a_res_t;
 
 // =======================================================================
+// d7a_error_t
+// -----------------------------------------------------------------------
+/// Error types enumerator for D7A
+// =======================================================================
+typedef enum
+{
+    /// No error
+    D7A_ERROR_NO            =  0,
+    /// Resource busy
+    D7A_ERROR_BUSY          = -1,
+    /// Bad parameter
+    D7A_ERROR_BAD_PARAM     = -2,
+    /// Duty cycle limit overflow
+    D7A_ERROR_DUTY_CYCLE    = -3,
+    /// Timeout
+    D7A_ERROR_TO            = -4,
+    /// Security frame counter overflow
+    D7A_ERROR_NLS_KEY       = -5,
+    /// TX stream underflow
+    D7A_ERROR_TX_UDF        = -6,
+    /// RX stream overflow
+    D7A_ERROR_RX_OVF        = -7,
+    /// RX checksum
+    D7A_ERROR_RX_CRC        = -8,
+    /// Abort
+    D7A_ERROR_ABORT         = -9,
+
+} d7a_error_t;
+
+// =======================================================================
 // d7a_req_status_t
 // -----------------------------------------------------------------------
 /// D7A session request status