GNU Radio Manual and C++ API Reference 3.9.4.0
The Free & Open Software Radio Ecosystem
simple_framer_sync.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2004,2005,2012 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_GR_SIMPLE_FRAMER_SYNC_H
12#define INCLUDED_GR_SIMPLE_FRAMER_SYNC_H
13
14namespace gr {
15namespace digital {
16
17/*!
18 * Here are a couple of maximum length sequences (m-sequences)
19 * that were generated by the the "mseq" matlab/octave code
20 * downloaded from: <a
21 * href="http://www.mathworks.com/matlabcentral/fileexchange/990">http://www.mathworks.com/matlabcentral/fileexchange/990</a>
22 *
23 * <pre>
24 * 31-bit m-sequence:
25 * 0110100100001010111011000111110
26 * 0x690AEC76 (padded on right with a zero)
27 *
28 * 63-bit m-sequence:
29 * 101011001101110110100100111000101111001010001100001000001111110
30 * 0xACDDA4E2F28C20FC (padded on right with a zero)
31 * </pre>
32 */
33static constexpr unsigned long long GRSF_SYNC = 0xacdda4e2f28c20fcULL;
34
35static constexpr int GRSF_BITS_PER_BYTE = 8;
36static constexpr int GRSF_SYNC_OVERHEAD = sizeof(GRSF_SYNC);
37static constexpr int GRSF_PAYLOAD_OVERHEAD = 1; // 1 byte seqno
38static constexpr int GRSF_TAIL_PAD = 1; // one byte trailing padding
39static constexpr int GRSF_OVERHEAD =
41
42} /* namespace digital */
43} /* namespace gr */
44
45#endif /* INCLUDED_GR_SIMPLE_FRAMER_SYNC_H */
static constexpr unsigned long long GRSF_SYNC
Definition: simple_framer_sync.h:33
static constexpr int GRSF_PAYLOAD_OVERHEAD
Definition: simple_framer_sync.h:37
static constexpr int GRSF_SYNC_OVERHEAD
Definition: simple_framer_sync.h:36
static constexpr int GRSF_OVERHEAD
Definition: simple_framer_sync.h:39
static constexpr int GRSF_BITS_PER_BYTE
Definition: simple_framer_sync.h:35
static constexpr int GRSF_TAIL_PAD
Definition: simple_framer_sync.h:38
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29