Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
call.h
00001 #ifndef __CALL_H__ 00002 #define __CALL_H__ 00003 00004 #include "rtp.h" 00005 #include "rtpbuf.h" 00006 #include "mbed.h" 00007 #include "EthernetInterface.h" 00008 #include <stdlib.h> 00009 #include <stdint.h> 00010 #include <string.h> 00011 #include "object.h" 00012 #include "vz_protocol.h" 00013 00014 extern DigitalOut led1; 00015 00016 #define __RPT_SEVER_IP__ "192.168.120.120" 00017 #define __CALL_MAX_IDLE_TIME__ 5 00018 #define __MAX_CALL_TIME__ 180 00019 00020 class VZ_call : public Object{ 00021 private : 00022 Timer t; 00023 Timer finish; 00024 int cb_ext; 00025 int cb_port; 00026 uint8_t cb2server[ 320 ]; 00027 char server2cb[ 320 ]; 00028 uint8_t buffer[ 320 ]; 00029 UDPSocket rtp_sock; 00030 int rtp_server_ext; 00031 int rtp_server_port; 00032 Endpoint rtp_server; 00033 RTP * rtp; 00034 rtpbuf_t rtpbuf; 00035 public : 00036 VZ_call( int cb_ext, int cb_port, int rtp_server_ext, int rtp_server_port ); 00037 ~VZ_call(); 00038 int get_cb_ext(); 00039 int get_cb_port(); 00040 int get_rtp_server_ext(); 00041 int get_rtp_server_port(); 00042 char * get_eth_message( int * length ); 00043 char * get_server2cb_buffer(); 00044 uint8_t * get_cb2server_buffer(); 00045 uint8_t * get_buffer(); 00046 00047 uint8_t * build_cb_package( void ); 00048 char * build_eth_package( uint8_t * ); 00049 00050 int send_message( char * ); 00051 bool is_timeout( void ); 00052 bool is_timetofinish( void ); 00053 }; 00054 #endif
Generated on Fri Jul 22 2022 09:19:18 by
1.7.2