11 #ifndef INCLUDED_LIBCYBERRADIO_VITA49PACKET_H 12 #define INCLUDED_LIBCYBERRADIO_VITA49PACKET_H 61 size_t vitaHeaderSize,
65 unsigned char* rawData = NULL,
66 size_t rawDataLen = 0);
110 std::string
rawDataHex() {
return rawDataBufferHex(_rawData, _totalPacketSize); };
122 size_t vitaHeaderSize;
128 uint32_t frameAlignmentWord;
134 int timestampIntType;
135 int timestampFracType;
139 int organizationallyUniqueId;
140 int informationClassCode;
142 uint32_t timestampInt;
143 uint64_t timestampFrac;
144 uint32_t frameTrailerWord;
151 int32_t ddcFreqOffset;
160 uint32_t rawDataWord(
int index);
161 std::string rawDataBufferHex(
unsigned char* buf,
int length);
162 void byteswapRawData(
void);
168 size_t _totalPacketSize;
std::string rawDataHex()
Gets the raw data in hex-string format.
bool isVita49() const
Indicates whether the packet data is in VITA 49 format.
int16_t getSampleI(int sample)
Gets the I component of a given data sample.
Vita49Packet(int vitaType, size_t payloadSize, size_t vitaHeaderSize, size_t vitaTailSize, bool byteSwapped, bool iqSwapped, unsigned char *rawData=NULL, size_t rawDataLen=0)
Constructs a Vita49Packet object.
virtual ~Vita49Packet()
Destroys a Vita49Packet object.
std::string dump()
Gets a string dump of the contents of the data packet.
Defines functionality for LibCyberRadio applications.
int16_t getSampleQ(int sample)
Gets the Q component of a given data sample.
virtual Vita49Packet & operator=(const Vita49Packet &src)
Assignment operator.
Decodes a VITA 49 or I/Q data packet.