GNU Radio Manual and C++ API Reference  3.10.9.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 
15 
17 {
18 public:
19  // size: 8 (64-bit)
20  uint64_t seqnum;
21 
22  header_seq_num() { seqnum = 0; };
23 };
24 
26 {
27 public:
28  // size: 10 (80-bit)
29  uint64_t seqnum;
30  int16_t length;
31 
33  {
34  seqnum = 0;
35  length = 0;
36  };
37 };
38 
40 {
41 public:
42  // Total size: 64 bytes
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;
52  float reserved;
53  uint64_t absTime;
54  uint32_t flags;
55  uint32_t len;
56 
58  {
59  seq = 0;
60  freq = 0.0;
61  sampleRate = 0.0;
62  };
63 };
64 
65 #endif /* INCLUDED_NETWORK_PACKET_HEADERS_H */
Definition: packet_headers.h:40
uint8_t version
Definition: packet_headers.h:43
float reserved
Definition: packet_headers.h:52
uint8_t streams
Definition: packet_headers.h:45
uint32_t seq
Definition: packet_headers.h:48
uint8_t binaryPoint
Definition: packet_headers.h:43
uint64_t absTime
Definition: packet_headers.h:53
uint8_t bitsPerSample
Definition: packet_headers.h:43
uint8_t polCode
Definition: packet_headers.h:45
float usableFraction
Definition: packet_headers.h:51
uint32_t len
Definition: packet_headers.h:55
double sampleRate
Definition: packet_headers.h:50
uint32_t flags
Definition: packet_headers.h:54
ata_header()
Definition: packet_headers.h:57
uint32_t order
Definition: packet_headers.h:44
uint32_t chan
Definition: packet_headers.h:47
uint8_t group
Definition: packet_headers.h:43
uint8_t hdrLen
Definition: packet_headers.h:45
double freq
Definition: packet_headers.h:49
uint8_t type
Definition: packet_headers.h:45
uint32_t src
Definition: packet_headers.h:46
Definition: packet_headers.h:17
header_seq_num()
Definition: packet_headers.h:22
uint64_t seqnum
Definition: packet_headers.h:20
Definition: packet_headers.h:26
header_seq_plus_size()
Definition: packet_headers.h:32
int16_t length
Definition: packet_headers.h:30
uint64_t seqnum
Definition: packet_headers.h:29