GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
modulate_vector.h
Go to the documentation of this file.
1/*
2 * Copyright 2015 Free Software Foundation, Inc.
3 *
4 * This file is part of GNU Radio
5 *
6 * SPDX-License-Identifier: GPL-3.0-or-later
7 *
8 */
9
10#ifndef INCLUDED_DIGITAL_MODULATE_VECTOR_H
11#define INCLUDED_DIGITAL_MODULATE_VECTOR_H
12
14#include <gnuradio/types.h>
15
16namespace gr {
17namespace digital {
18
19/*!
20 * \brief Modulate a vector of data and apply a shaping filter.
21 *
22 * \p modulator: Pointer to a byte-to-complex modulator block.
23 * \p data: Vector of bytes to modulate into symbols.
24 * \p taps: Post-modulation symbol shaping filter taps.
25 *
26 * \details
27 * This function modulates the input vector and applies a
28 * symbol shaping filter. It is intended for use with the
29 * corr_est_cc block as the symbol stream to correlate
30 * against.
31 *
32 * Any differential encoding or other data coding must be
33 * performed on the input vector before this modulation
34 * operation.
35 *
36 * Be aware that the format of the incoming data must match
37 * the format the modulator block is expecting. GNURadio
38 * modulator blocks are inconsistent in their data type
39 * expectations. For instance, cpmmod_bc expects unpacked,
40 * signed bytes in (-1, 1), while gmsk_mod expects packed,
41 * unsigned bytes in (0, 1). In other words, the output of
42 * gmsk_mod given the input vector [0xaa, 0x00] is equivalent
43 * to the output of cpmmod_bc given the input vector
44 * [1,255,1,255,1,255,1,255,255,255,255,255,255,255,255,255]
45 *
46 * Please check the documentation or source of the modulator
47 * before using this function.
48 *
49 */
50DIGITAL_API std::vector<gr_complex> modulate_vector_bc(basic_block_sptr modulator,
51 std::vector<uint8_t> data,
52 std::vector<float> taps);
53
54} /* namespace digital */
55} /* namespace gr */
56
57#endif /* INCLUDED_DIGITAL_MODULATE_VECTOR_H */
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:18
static constexpr float taps[NSTEPS+1][NTAPS]
Definition: interpolator_taps.h:9
DIGITAL_API std::vector< gr_complex > modulate_vector_bc(basic_block_sptr modulator, std::vector< uint8_t > data, std::vector< float > taps)
Modulate a vector of data and apply a shaping filter.
GNU Radio logging wrapper.
Definition: basic_block.h:29