GNU Radio C++ API Reference: base.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
base.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2002,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_TRELLIS_BASE_H
12#define INCLUDED_TRELLIS_BASE_H
13
14#include <vector>
15
16namespace gr {
17 namespace trellis {
18
19/*!
20 * \brief change base
21 */
22
23 bool dec2base(unsigned int num, int base, std::vector<int>& s);
24 bool dec2bases(unsigned int num, const std::vector<int>& bases, std::vector<int>& s);
25 unsigned int base2dec(const std::vector<int>& s, int base);
26 unsigned int bases2dec(const std::vector<int>& s, const std::vector<int>& bases);
27
28} /* namespace trellis */
29} /* namespace gr */
30
31#endif /* INCLUDED_TRELLIS_BASE_H */
gr::trellis
Definition base.h:17
gr::trellis::dec2bases
bool dec2bases(unsigned int num, const std::vector< int > &bases, std::vector< int > &s)
gr::trellis::dec2base
bool dec2base(unsigned int num, int base, std::vector< int > &s)
change base
gr::trellis::bases2dec
unsigned int bases2dec(const std::vector< int > &s, const std::vector< int > &bases)
gr::trellis::base2dec
unsigned int base2dec(const std::vector< int > &s, int base)
gr
GNU Radio logging wrapper.
Definition basic_block.h:29