Jonathan Jones
/
Radios
Radio Structures in OOP
utils/RTP.h
- Committer:
- jjones646
- Date:
- 2015-01-15
- Revision:
- 6:4a3dbfbc30f1
- Parent:
- 2:7d523bdd2f50
File content as of revision 6:4a3dbfbc30f1:
#ifndef REAL_TIME_PACKET_H #define REAL_TIME_PACKET_H #include "mbed.h" #define RTP_MAX_DATA_SIZE 32 typedef struct _RTP_t { uint8_t data_size; union { struct { union { uint8_t header; struct { uint8_t port : 4; uint8_t subclass : 4; }; }; uint8_t data[RTP_MAX_DATA_SIZE]; }; uint8_t raw[RTP_MAX_DATA_SIZE + 1]; }; } RTP_t; #endif // REAL_TIME_PACKET_H