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_old mbed
Fork of header_main_public by
rtp.h
- Committer:
- klauss
- Date:
- 2014-09-19
- Revision:
- 18:01a93677e40c
- Parent:
- 13:ae278302dffe
File content as of revision 18:01a93677e40c:
#ifndef __RTP_H__
#define __RTP_H__
#include <stdint.h>
#include <string.h>
#include "mbed.h"
#include "EthernetInterface.h"
#include "vz_protocol.h"
#include "debug.h"
#define __RTP_HEADER_OFFSET__ 12
#define __RTP_HEADER_SIZE__ 12
class RTP_Header{
private :
uint32_t ss_id;
uint16_t seq_number;
uint32_t timestamp;
public :
RTP_Header( int cb_ext );
~RTP_Header();
size_t size( void );
uint8_t * build_header( uint8_t * buffer_header );
char * build_header( char * pkg );
};
class RTP_Body{
private :
public :
RTP_Body();
~RTP_Body();
size_t size( void );
char * build_body( char * dest, char * buffer );
};
class RTP{
private :
uint8_t buffer[ 512 ];
char pkg[ 512 ];
RTP_Header * rtp_header;
RTP_Body * rtp_body;
public :
RTP( int ext );
~RTP();
size_t header_size( void );
char * build_eth_package( char * buffer );
uint8_t * get_buffer( void ){ return this->buffer; }
};
#endif
