GNU Radio Manual and C++ API Reference
3.10.5.1
The Free & Open Software Radio Ecosystem
packet_headers.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2020 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
7
* SPDX-License-Identifier: GPL-3.0-or-later
8
*
9
*/
10
11
#ifndef INCLUDED_NETWORK_PACKET_HEADERS_H
12
#define INCLUDED_NETWORK_PACKET_HEADERS_H
13
14
#include <
gnuradio/network/udp_header_types.h
>
15
16
class
header_seq_num
17
{
18
public
:
19
// size: 8 (64-bit)
20
uint64_t
seqnum
;
21
22
header_seq_num
() {
seqnum
= 0; };
23
};
24
25
class
header_seq_plus_size
26
{
27
public
:
28
// size: 10 (80-bit)
29
uint64_t
seqnum
;
30
int16_t
length
;
31
32
header_seq_plus_size
()
33
{
34
seqnum
= 0;
35
length
= 0;
36
};
37
};
38
39
class
ata_header
40
{
41
public
:
42
// Total size: 64 bytes
43
uint8_t
group
,
version
,
bitsPerSample
,
binaryPoint
;
44
uint32_t
order
;
45
uint8_t
type
,
streams
,
polCode
,
hdrLen
;
46
uint32_t
src
;
47
uint32_t
chan
;
48
uint32_t
seq
;
49
double
freq
;
50
double
sampleRate
;
51
float
usableFraction
;
52
float
reserved
;
53
uint64_t
absTime
;
54
uint32_t
flags
;
55
uint32_t
len
;
56
57
ata_header
()
58
{
59
seq
= 0;
60
freq
= 0.0;
61
sampleRate
= 0.0;
62
};
63
};
64
65
#endif
/* INCLUDED_NETWORK_PACKET_HEADERS_H */
ata_header
Definition:
packet_headers.h:40
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
Definition:
packet_headers.h:17
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
Definition:
packet_headers.h:26
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
gr-network
include
gnuradio
network
packet_headers.h
Generated by
1.9.4