Loading...
Searching...
No Matches
packet_headers.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2020 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_NETWORK_PACKET_HEADERS_H
#define INCLUDED_NETWORK_PACKET_HEADERS_H
#include <gnuradio/network/udp_header_types.h>
class header_seq_num
{
public:
// size: 8 (64-bit)
uint64_t seqnum;
header_seq_num() { seqnum = 0; };
};
class header_seq_plus_size
{
public:
// size: 10 (80-bit)
uint64_t seqnum;
int16_t length;
header_seq_plus_size()
{
seqnum = 0;
length = 0;
};
};
class ata_header
{
public:
// Total size: 64 bytes
uint8_t group, version, bitsPerSample, binaryPoint;
uint32_t order;
uint8_t type, streams, polCode, hdrLen;
uint32_t src;
uint32_t chan;
uint32_t seq;
double freq;
double sampleRate;
float usableFraction;
float reserved;
uint64_t absTime;
uint32_t flags;
uint32_t len;
ata_header()
{
seq = 0;
freq = 0.0;
sampleRate = 0.0;
};
};
#endif /* INCLUDED_NETWORK_PACKET_HEADERS_H */
ata_header::version
uint8_t version
Definition packet_headers.h:43
ata_header::reserved
float reserved
Definition packet_headers.h:52
ata_header::streams
uint8_t streams
Definition packet_headers.h:45
ata_header::seq
uint32_t seq
Definition packet_headers.h:48
ata_header::binaryPoint
uint8_t binaryPoint
Definition packet_headers.h:43
ata_header::absTime
uint64_t absTime
Definition packet_headers.h:53
ata_header::bitsPerSample
uint8_t bitsPerSample
Definition packet_headers.h:43
ata_header::polCode
uint8_t polCode
Definition packet_headers.h:45
ata_header::usableFraction
float usableFraction
Definition packet_headers.h:51
ata_header::len
uint32_t len
Definition packet_headers.h:55
ata_header::sampleRate
double sampleRate
Definition packet_headers.h:50
ata_header::flags
uint32_t flags
Definition packet_headers.h:54
ata_header::ata_header
ata_header()
Definition packet_headers.h:57
ata_header::order
uint32_t order
Definition packet_headers.h:44
ata_header::chan
uint32_t chan
Definition packet_headers.h:47
ata_header::group
uint8_t group
Definition packet_headers.h:43
ata_header::hdrLen
uint8_t hdrLen
Definition packet_headers.h:45
ata_header::freq
double freq
Definition packet_headers.h:49
ata_header::type
uint8_t type
Definition packet_headers.h:45
ata_header::src
uint32_t src
Definition packet_headers.h:46
header_seq_num::header_seq_num
header_seq_num()
Definition packet_headers.h:22
header_seq_num::seqnum
uint64_t seqnum
Definition packet_headers.h:20
header_seq_plus_size::header_seq_plus_size
header_seq_plus_size()
Definition packet_headers.h:32
header_seq_plus_size::length
int16_t length
Definition packet_headers.h:30
header_seq_plus_size::seqnum
uint64_t seqnum
Definition packet_headers.h:29
udp_header_types.h