Jonathan Jones
/
Radios
Radio Structures in OOP
Embed:
(wiki syntax)
Show/hide line numbers
RTP.h
00001 #ifndef REAL_TIME_PACKET_H 00002 #define REAL_TIME_PACKET_H 00003 00004 #include "mbed.h" 00005 00006 #define RTP_MAX_DATA_SIZE 32 00007 00008 typedef struct _RTP_t { 00009 uint8_t data_size; 00010 union { 00011 struct { 00012 union { 00013 uint8_t header; 00014 struct { 00015 uint8_t port : 4; 00016 uint8_t subclass : 4; 00017 }; 00018 }; 00019 uint8_t data[RTP_MAX_DATA_SIZE]; 00020 }; 00021 uint8_t raw[RTP_MAX_DATA_SIZE + 1]; 00022 }; 00023 } RTP_t; 00024 00025 #endif // REAL_TIME_PACKET_H
Generated on Mon Jul 18 2022 20:09:01 by 1.7.2