local fork

Dependencies:   Socket USBHostWANDongle_bleedingedge lwip-sys lwip

Dependents:   Encrypted

Fork of VodafoneUSBModem_bleedingedge by Donatien Garnier

Revision:
52:bd474c9fe51e
Parent:
50:8ad4cb12749d
Child:
57:593fb493172f
--- a/at/ATCommandsInterface.h	Thu Sep 27 14:48:19 2012 +0000
+++ b/at/ATCommandsInterface.h	Thu Oct 11 09:59:41 2012 +0000
@@ -124,15 +124,16 @@
 
   enum { IDLE, COMMAND_SENT, READING_RESULT, ABORTED } m_transactionState;
 
-  char m_inputBuf[AT_INPUT_BUF_SIZE];
-  int m_inputPos;
+  char m_inputBuf[AT_INPUT_BUF_SIZE]; // Stores characters received from the modem.
+  int m_inputPos; // Current position of fill pointer in the input buffer.
 
   Mutex m_transactionMtx;
 
-  Mail<int,1> m_env2AT;
-  Mail<int,1> m_AT2Env;
+  // These are RTOS queues, concurrent access protected. In this case both only contain an integer.
+  Mail<int,1> m_env2AT; // used by calling function to inform processing thread of events
+  Mail<int,1> m_AT2Env; // used by processing thread to inform calling function of events
 
-  IATEventsHandler* m_eventsHandlers[MAX_AT_EVENTS_HANDLERS];
+  IATEventsHandler* m_eventsHandlers[MAX_AT_EVENTS_HANDLERS]; // all registered events handlers
 
   Mutex m_processingMtx;
   Thread m_processingThread;