GNU Radio's DVBS2RX Package
bch_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_BCH_DECODER_BB_H
12#define INCLUDED_DVBS2RX_BCH_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 bch_decoder_bb : virtual public gr::block
27{
28public:
29 typedef std::shared_ptr<bch_decoder_bb> sptr;
30
31 /*!
32 * \brief Return a shared_ptr to a new instance of dvbs2rx::bch_decoder_bb.
33 *
34 * To avoid accidental use of raw pointers, dvbs2rx::bch_decoder_bb's
35 * constructor is in a private implementation
36 * class. dvbs2rx::bch_decoder_bb::make is the public interface for
37 * creating new instances.
38 */
39 static sptr make(dvb_standard_t standard,
40 dvb_framesize_t framesize,
41 dvb_code_rate_t rate,
42 dvb_outputmode_t outputmode,
43 int debug_level = 0);
44
45 /*!
46 * \brief Get count of processed FECFRAMEs.
47 * \return uint64_t FECFRAME count.
48 */
49 virtual uint64_t get_frame_count() = 0;
50
51 /*!
52 * \brief Get count of FECFRAMEs output with residual uncorrected errors.
53 * \return uint64_t FECFRAME error count.
54 */
55 virtual uint64_t get_error_count() = 0;
56};
57
58} // namespace dvbs2rx
59} // namespace gr
60
61#endif /* INCLUDED_DVBS2RX_BCH_DECODER_BB_H */
<+description of block+>
Definition bch_decoder_bb.h:27
std::shared_ptr< bch_decoder_bb > sptr
Definition bch_decoder_bb.h:29
virtual uint64_t get_error_count()=0
Get count of FECFRAMEs output with residual uncorrected errors.
static sptr make(dvb_standard_t standard, dvb_framesize_t framesize, dvb_code_rate_t rate, dvb_outputmode_t outputmode, int debug_level=0)
Return a shared_ptr to a new instance of dvbs2rx::bch_decoder_bb.
virtual uint64_t get_frame_count()=0
Get count of processed FECFRAMEs.
#define DVBS2RX_API
Definition include/gnuradio/dvbs2rx/api.h:19
dvb_framesize_t
Definition dvb_config.h:74
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