Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
123:1d395b5a4cad
Parent:
121:ee02790d00b7
Child:
126:1f90756250fb
--- a/call_box.h	Mon May 11 15:16:36 2015 +0000
+++ b/call_box.h	Mon May 11 19:21:39 2015 +0000
@@ -17,14 +17,9 @@
 
 const uint16_t MAX_INVITE_RETRY = 512 * 2;
 
-const uint8_t __TIMEOUT__  = 250;
-
 ///< O tempo que a Header demora para "pingar" o Call_Box para saber se esta tudo bem.
 const uint8_t __RANGE_TO_REGISTER__ = 150;
 ///< Doc. later
-const uint8_t __TIME_TO_REGISTER__ = __TIMEOUT__ - __RANGE_TO_REGISTER__;
-
-const uint8_t __CYCLES__ = __TIME_TO_REGISTER__ / __RESQUEST_TIME__; // 200 // 3 ~ 66
 
 const uint8_t RTP_REQUEST_PORT_TIMEOUT = 45;
 
@@ -33,15 +28,9 @@
 const short int REQUEST_PING = -4;
 ///< Valor usado como referencia para registro do equipamento CBx.
 
-const uint8_t __MAX_ATTEMPTS__  = 5;
-///< O numero maximo de vezes que a Header vai tentar pingar o Call_Box
-
 const uint8_t __STEP__ = 30;
 ///< Usado para aumentar o intervalo entre cada ping, fora de uso atualmente.
 
-const uint8_t __MAX_TIMEOUT__ = __STEP__ * __MAX_ATTEMPTS__;
-///< Usado para limitar o tempo maximo de timeout do Call_Box sem responder o ping, fora de uso.
-
 const uint8_t cb_idle = 1;
 ///< Representa que o Call_Box esta disponivel
 
@@ -90,7 +79,7 @@
           */
         uint8_t status;
         
-        uint8_t remaining_attempts;
+        uint8_t overflow_times;
         uint8_t msg_id;
         uint8_t timeslice;
         uint8_t next_aging_type;
@@ -176,7 +165,7 @@
                  * ...
                  * @endcode
                  */
-        float get_elapsed_time ( void );
+        uint16_t get_elapsed_time ( void );
 
                 /**
                  * @Synopsis Reseta o timer do objeto Call_Box.
@@ -345,6 +334,8 @@
         
         uint8_t msg_id_update ( void );
         
+        uint8_t get_overflow_times ( void );
+        
         uint16_t get_invite_retry_count ( void );
         
         
@@ -401,7 +392,9 @@
         
         void reset_rtp_timer ( void );
         
-        void call_config ( void ); 
+        void call_config ( void );
+        
+        void update_time ( void );
         
         Sip * get_sip ( void );
 };