Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
92:92df17f538a8
Parent:
91:c2a86b1f8aaa
Child:
104:62646ef786a3
--- a/call.cpp	Thu Jan 08 23:44:08 2015 +0000
+++ b/call.cpp	Sat Jan 10 16:35:11 2015 +0000
@@ -93,4 +93,20 @@
 
 bool VZ_call::is_timetofinish( void ){
     return ( finish.read() > __MAX_CALL_TIME__ ) ? true : false;
+}
+
+int VZ_call::get_elapsed_time( void ){
+    return ( finish.read_ms() );
+}
+
+void VZ_call::cbx_pkg_idle_timer_reset( void ){
+    cbx_pkg_idle_timer.reset();
+}
+
+bool VZ_call::cbx_pkg_is_idle( void ){
+    return ( cbx_pkg_idle_timer.read() > CBX_PKG_IDLE_MAX_TIME ) ? true : false;
+}
+
+void VZ_call::init_cbx_pkg_idle_timer(){
+    cbx_pkg_idle_timer.start();
 }
\ No newline at end of file