GNU Radio's DVBS2RX Package
bbdeheader_bb_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2018 Ron Economos.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_DVBS2RX_BBDEHEADER_BB_IMPL_H
22 #define INCLUDED_DVBS2RX_BBDEHEADER_BB_IMPL_H
23 
24 #include <dvbs2rx/bbdeheader_bb.h>
25 #include "dvb_defines.h"
26 
27 typedef struct{
28  int ts_gs;
29  int sis_mis;
30  int ccm_acm;
31  int issyi;
32  int npd;
33  int ro;
34  int isi;
35  int upl;
36  int dfl;
37  int sync;
38  int syncd;
39 }BBHeader;
40 
41 typedef struct{
44 
45 namespace gr {
46  namespace dvbs2rx {
47 
49  {
50  private:
51  unsigned int kbch;
52  unsigned int dvb_standard;
53  unsigned int count;
54  unsigned int synched;
55  unsigned char crc;
56  unsigned int distance;
57  unsigned int spanning;
58  unsigned int index;
59  FrameFormat m_format[1];
60  unsigned char crc_tab[256];
61  unsigned char packet[188];
62  void build_crc8_table(void);
63  unsigned int check_crc8_bits(const unsigned char *, int);
64 
65  public:
68 
69  // Where all the action really happens
70  void forecast (int noutput_items, gr_vector_int &ninput_items_required);
71 
72  int general_work(int noutput_items,
73  gr_vector_int &ninput_items,
74  gr_vector_const_void_star &input_items,
75  gr_vector_void_star &output_items);
76  };
77 
78  } // namespace dvbs2rx
79 } // namespace gr
80 
81 #endif /* INCLUDED_DVBS2RX_BBDEHEADER_BB_IMPL_H */
82 
Definition: bbdeheader_bb_impl.h:48
Definition: bbdeheader_bb_impl.h:27
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
Definition: bbdeheader_bb_impl.h:41
bbdeheader_bb_impl(dvb_standard_t standard, dvb_framesize_t framesize, dvb_code_rate_t rate)
int dfl
Definition: bbdeheader_bb_impl.h:36
int ccm_acm
Definition: bbdeheader_bb_impl.h:30
dvb_framesize_t
Definition: dvb_config.h:85
int issyi
Definition: bbdeheader_bb_impl.h:31
int upl
Definition: bbdeheader_bb_impl.h:35
int npd
Definition: bbdeheader_bb_impl.h:32
Definition: bbdeheader_bb.h:30
int ts_gs
Definition: bbdeheader_bb_impl.h:28
int sync
Definition: bbdeheader_bb_impl.h:37
BBHeader bb_header
Definition: bbdeheader_bb_impl.h:42
int sis_mis
Definition: bbdeheader_bb_impl.h:29
int isi
Definition: bbdeheader_bb_impl.h:34
<+description of block+>
Definition: bbdeheader_bb.h:38
int syncd
Definition: bbdeheader_bb_impl.h:38
dvb_code_rate_t
Definition: dvb_config.h:31
int ro
Definition: bbdeheader_bb_impl.h:33
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
dvb_standard_t
Definition: dvb_config.h:26