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
rtp.h
00001 #ifndef __RTP_H__ 00002 #define __RTP_H__ 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include "mbed.h" 00007 #include "EthernetInterface.h" 00008 #include "vz_protocol.h" 00009 #include "debug.h" 00010 00011 #define __RTP_HEADER_OFFSET__ 12 00012 #define __RTP_HEADER_SIZE__ 12 00013 00014 class RTP_Header{ 00015 private : 00016 uint32_t ss_id; 00017 uint16_t seq_number; 00018 uint32_t timestamp; 00019 public : 00020 RTP_Header( int cb_ext ); 00021 ~RTP_Header(); 00022 size_t size( void ); 00023 uint8_t * build_header( uint8_t * buffer_header ); 00024 char * build_header( char * pkg ); 00025 }; 00026 00027 class RTP_Body{ 00028 private : 00029 public : 00030 RTP_Body(); 00031 ~RTP_Body(); 00032 size_t size( void ); 00033 char * build_body( char * dest, char * buffer ); 00034 }; 00035 class RTP{ 00036 private : 00037 uint8_t buffer[ 512 ]; 00038 char pkg[ 512 ]; 00039 RTP_Header * rtp_header; 00040 RTP_Body * rtp_body; 00041 public : 00042 RTP( int ext ); 00043 ~RTP(); 00044 size_t header_size( void ); 00045 char * build_eth_package( char * buffer ); 00046 uint8_t * get_buffer( void ){ return this->buffer; } 00047 }; 00048 00049 #endif
Generated on Fri Jul 22 2022 09:19:18 by
1.7.2