voltando a versao de n aberturas e fechamentos de sockets data 19/09

Dependencies:   EthernetInterface NTPClient mbed-rtos mbed EALib

Fork of header_main_publish by VZTECH

Revision:
0:4d17cd9c8f9d
Child:
8:e3bfe62a477e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/utils.h	Tue Sep 09 20:01:24 2014 +0000
@@ -0,0 +1,40 @@
+#ifndef __UTILS_H__
+#define __UTILS_H__
+
+#include <iostream>
+#include <string.h>
+#include "mbed.h"
+#include "EthernetInterface.h"
+#include "vz_protocol.h"
+#include "vector.h"
+#include "sip.h"
+#include "call.h"
+#include "call_box.h"
+#include "timeslice.h"
+#include "NTPClient.h"
+#include "parallelcpld.h"
+#include "test.h"
+
+using namespace std;
+
+extern DigitalOut led1;
+extern DigitalOut led2;
+extern DigitalOut led3;
+extern DigitalOut led4;
+
+#define set_status(a,b) a = b
+
+void reverse( char str[], int length );
+char* itoa(int num, char* str, int base);
+void reset_leds( void );
+void __init_eth__( EthernetInterface * eth );
+
+Call_Box * __find_CB__( Vector * v_cb, int ext );
+VZ_call * __find_Call__( Vector * v_call, int ext );
+void registry_aging( Vector * v_cb, uint8_t * data, uint8_t * write_buffer );
+int sip_manager( Vector * v_cb, Vector * v_call, uint8_t * write_buffer );
+void call_manager( Vector * v_call, Vector * v_cb, uint8_t * data, uint8_t * write_buffer, Timeslice * ts );
+void build_telemetry_report( int ext, int port, char * data );
+void __send_to_cb__( uint8_t * buffer );
+
+#endif
\ No newline at end of file