mbed Phone Platform

Dependencies:   ulaw mbed ConfigFile

Revision:
2:e37117117e79
Parent:
1:0f82c574096f
Child:
3:1d5dc4107558
--- a/IpLine.h	Sun Dec 26 15:49:07 2010 +0000
+++ b/IpLine.h	Wed Jan 05 15:43:53 2011 +0000
@@ -5,6 +5,9 @@
 #include "RingBuffer.h"
 #include "ulaw.h"
 
+#define NET_RETRY (FREQ)
+#define NET_TIMEOUT (FREQ * 3)
+
 struct ipline_header {
     unsigned short num;
     enum PhoneType target;
@@ -23,8 +26,8 @@
 public:
     IpLine (AnalogOut, AnalogIn);
 
+    void intr ();
     void poll ();
-    void netpoll ();
     int enter (enum Mode);
     int scan (enum Scan);
     void settarget (enum PhoneType, char *);
@@ -43,6 +46,6 @@
     struct ipline_header last;
 
     void onLisnerEvent (UDPSocketEvent);
-    void send (struct ipline_header &);
-    void send (struct ipline_packet &);
+    void send (struct ipline_header *);
+    void send (struct ipline_packet *);
 };