GNU Radio's DVBS2RX Package
ldpc_decoder_bb.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2018 Ahmet Inan, Ron Economos.
4 *
5 * This file is part of gr-dvbs2rx.
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 */
9
10
11#ifndef INCLUDED_DVBS2RX_LDPC_DECODER_BB_H
12#define INCLUDED_DVBS2RX_LDPC_DECODER_BB_H
13
14#include <gnuradio/block.h>
17
18namespace gr {
19namespace dvbs2rx {
20
21/*!
22 * \brief <+description of block+>
23 * \ingroup dvbs2rx
24 *
25 */
26class DVBS2RX_API ldpc_decoder_bb : virtual public gr::block
27{
28public:
29 typedef std::shared_ptr<ldpc_decoder_bb> sptr;
30
31 /*!
32 * \brief Return a shared_ptr to a new instance of dvbs2rx::ldpc_decoder_bb.
33 *
34 * To avoid accidental use of raw pointers, dvbs2rx::ldpc_decoder_bb's constructor is
35 * in a private implementation class. dvbs2rx::ldpc_decoder_bb::make is the public
36 * interface for creating new instances.
37 */
38 static sptr make(dvb_standard_t standard,
39 dvb_framesize_t framesize,
40 dvb_code_rate_t rate,
41 dvb_constellation_t constellation,
42 dvb_outputmode_t outputmode,
43 dvb_infomode_t infomode,
44 int max_trials,
45 int debug_level = 0);
46
47 /*!
48 * \brief Get the average number of LDPC decoding iterations per frame.
49 * \return unsigned int Average decoding interations.
50 */
51 virtual unsigned int get_average_trials() = 0;
52};
53
54} // namespace dvbs2rx
55} // namespace gr
56
57#endif /* INCLUDED_DVBS2RX_LDPC_DECODER_BB_H */
<+description of block+>
Definition ldpc_decoder_bb.h:27
virtual unsigned int get_average_trials()=0
Get the average number of LDPC decoding iterations per frame.
std::shared_ptr< ldpc_decoder_bb > sptr
Definition ldpc_decoder_bb.h:29
static sptr make(dvb_standard_t standard, dvb_framesize_t framesize, dvb_code_rate_t rate, dvb_constellation_t constellation, dvb_outputmode_t outputmode, dvb_infomode_t infomode, int max_trials, int debug_level=0)
Return a shared_ptr to a new instance of dvbs2rx::ldpc_decoder_bb.
#define DVBS2RX_API
Definition include/gnuradio/dvbs2rx/api.h:19
dvb_infomode_t
Definition dvb_config.h:118
dvb_framesize_t
Definition dvb_config.h:74
dvb_constellation_t
Definition dvb_config.h:80
dvb_outputmode_t
Definition dvb_config.h:113
dvb_code_rate_t
Definition dvb_config.h:20
dvb_standard_t
Definition dvb_config.h:15
Fixed-length double-ended queue with contiguous volk-aligned elements.
Definition gr_bch.h:22